Commit bde7da44 authored by Jens Axboe's avatar Jens Axboe

[PATCH] add blk_queue_stopped() helper function

The carmel driver will want to use this rather
than muck around in queue internals directly.
parent 68076a0e
...@@ -372,6 +372,8 @@ struct request_queue ...@@ -372,6 +372,8 @@ struct request_queue
#define blk_queue_plugged(q) !list_empty(&(q)->plug_list) #define blk_queue_plugged(q) !list_empty(&(q)->plug_list)
#define blk_queue_tagged(q) test_bit(QUEUE_FLAG_QUEUED, &(q)->queue_flags) #define blk_queue_tagged(q) test_bit(QUEUE_FLAG_QUEUED, &(q)->queue_flags)
#define blk_queue_stopped(q) test_bit(QUEUE_FLAG_STOPPED, &(q)->queue_flags)
#define blk_fs_request(rq) ((rq)->flags & REQ_CMD) #define blk_fs_request(rq) ((rq)->flags & REQ_CMD)
#define blk_pc_request(rq) ((rq)->flags & REQ_BLOCK_PC) #define blk_pc_request(rq) ((rq)->flags & REQ_BLOCK_PC)
#define blk_noretry_request(rq) ((rq)->flags & REQ_FAILFAST) #define blk_noretry_request(rq) ((rq)->flags & REQ_FAILFAST)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment