diff options
author | Tejun Heo <tj@kernel.org> | 2011-12-13 18:33:37 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2011-12-13 18:33:37 -0500 |
commit | 34f6055c80285e4efb3f602a9119db75239744dc (patch) | |
tree | eb05185976c1941d196d259c3dfc2a4cfa7469d1 /block/blk.h | |
parent | 1ba64edef6051d2ec79bb2fbd3a0c8f0df00ab55 (diff) |
block: add blk_queue_dead()
There are a number of QUEUE_FLAG_DEAD tests. Add blk_queue_dead()
macro and use it.
This patch doesn't introduce any functional difference.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
-rw-r--r-- | block/blk.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk.h b/block/blk.h index 3f6551b3c92d..e38691dbb329 100644 --- a/block/blk.h +++ b/block/blk.h | |||
@@ -85,7 +85,7 @@ static inline struct request *__elv_next_request(struct request_queue *q) | |||
85 | q->flush_queue_delayed = 1; | 85 | q->flush_queue_delayed = 1; |
86 | return NULL; | 86 | return NULL; |
87 | } | 87 | } |
88 | if (test_bit(QUEUE_FLAG_DEAD, &q->queue_flags) || | 88 | if (unlikely(blk_queue_dead(q)) || |
89 | !q->elevator->ops->elevator_dispatch_fn(q, 0)) | 89 | !q->elevator->ops->elevator_dispatch_fn(q, 0)) |
90 | return NULL; | 90 | return NULL; |
91 | } | 91 | } |