|
@@ -608,7 +608,7 @@ EXPORT_SYMBOL(blk_init_allocated_queue_node);
|
|
|
|
|
|
int blk_get_queue(struct request_queue *q)
|
|
int blk_get_queue(struct request_queue *q)
|
|
{
|
|
{
|
|
- if (likely(!test_bit(QUEUE_FLAG_DEAD, &q->queue_flags))) {
|
|
|
|
|
|
+ if (likely(!blk_queue_dead(q))) {
|
|
kobject_get(&q->kobj);
|
|
kobject_get(&q->kobj);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
@@ -755,7 +755,7 @@ static struct request *get_request(struct request_queue *q, int rw_flags,
|
|
const bool is_sync = rw_is_sync(rw_flags) != 0;
|
|
const bool is_sync = rw_is_sync(rw_flags) != 0;
|
|
int may_queue;
|
|
int may_queue;
|
|
|
|
|
|
- if (unlikely(test_bit(QUEUE_FLAG_DEAD, &q->queue_flags)))
|
|
|
|
|
|
+ if (unlikely(blk_queue_dead(q)))
|
|
return NULL;
|
|
return NULL;
|
|
|
|
|
|
may_queue = elv_may_queue(q, rw_flags);
|
|
may_queue = elv_may_queue(q, rw_flags);
|
|
@@ -875,7 +875,7 @@ static struct request *get_request_wait(struct request_queue *q, int rw_flags,
|
|
struct io_context *ioc;
|
|
struct io_context *ioc;
|
|
struct request_list *rl = &q->rq;
|
|
struct request_list *rl = &q->rq;
|
|
|
|
|
|
- if (unlikely(test_bit(QUEUE_FLAG_DEAD, &q->queue_flags)))
|
|
|
|
|
|
+ if (unlikely(blk_queue_dead(q)))
|
|
return NULL;
|
|
return NULL;
|
|
|
|
|
|
prepare_to_wait_exclusive(&rl->wait[is_sync], &wait,
|
|
prepare_to_wait_exclusive(&rl->wait[is_sync], &wait,
|