projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
TTY: pty, fix pty counting
[firefly-linux-kernel-4.4.55.git]
/
block
/
blk-core.c
diff --git
a/block/blk-core.c
b/block/blk-core.c
index d2f8f4049abddbf76d3414cd85ef36d2d4027d07..1d49e1c7c905cd1dadd8daf286205cee24e055b9 100644
(file)
--- a/
block/blk-core.c
+++ b/
block/blk-core.c
@@
-839,6
+839,9
@@
struct request *blk_get_request(struct request_queue *q, int rw, gfp_t gfp_mask)
{
struct request *rq;
+ if (unlikely(test_bit(QUEUE_FLAG_DEAD, &q->queue_flags)))
+ return NULL;
+
BUG_ON(rw != READ && rw != WRITE);
spin_lock_irq(q->queue_lock);