]> git.hungrycats.org Git - linux/commitdiff
[PATCH] add blk_queue_stopped() helper function
authorJens Axboe <axboe@suse.de>
Sun, 7 Mar 2004 00:02:56 +0000 (16:02 -0800)
committerJens Axboe <axboe@suse.de>
Sun, 7 Mar 2004 00:02:56 +0000 (16:02 -0800)
The carmel driver will want to use this rather
than muck around in queue internals directly.

include/linux/blkdev.h

index e4aa5cfac38cc14434de6a14cf2aa0fad1aa61d0..76a1e4fa96f4ed198900ad1af2a80982972f7a11 100644 (file)
@@ -372,6 +372,8 @@ struct request_queue
 
 #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_stopped(q)   test_bit(QUEUE_FLAG_STOPPED, &(q)->queue_flags)
+
 #define blk_fs_request(rq)     ((rq)->flags & REQ_CMD)
 #define blk_pc_request(rq)     ((rq)->flags & REQ_BLOCK_PC)
 #define blk_noretry_request(rq)        ((rq)->flags & REQ_FAILFAST)