diff options
author | Tejun Heo <tj@kernel.org> | 2012-03-05 16:14:58 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-03-06 15:27:21 -0500 |
commit | d732580b4eb31553c63744a47d590f770cafb8f0 (patch) | |
tree | ea4e8e21df1b639603693e6f5fdfc5a620cd8737 /block/blk.h | |
parent | b2fab5acd28ead6f0dd6c3996ba23f0ef1772f15 (diff) |
block: implement blk_queue_bypass_start/end()
Rename and extend elv_queisce_start/end() to
blk_queue_bypass_start/end() which are exported and supports nesting
via @q->bypass_depth. Also add blk_queue_bypass() to test bypass
state.
This will be further extended and used for blkio_group management.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
-rw-r--r-- | block/blk.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/block/blk.h b/block/blk.h index 9c12f80882b0..7422f3133c5d 100644 --- a/block/blk.h +++ b/block/blk.h | |||
@@ -23,7 +23,8 @@ void blk_rq_bio_prep(struct request_queue *q, struct request *rq, | |||
23 | struct bio *bio); | 23 | struct bio *bio); |
24 | int blk_rq_append_bio(struct request_queue *q, struct request *rq, | 24 | int blk_rq_append_bio(struct request_queue *q, struct request *rq, |
25 | struct bio *bio); | 25 | struct bio *bio); |
26 | void blk_drain_queue(struct request_queue *q, bool drain_all); | 26 | void blk_queue_bypass_start(struct request_queue *q); |
27 | void blk_queue_bypass_end(struct request_queue *q); | ||
27 | void blk_dequeue_request(struct request *rq); | 28 | void blk_dequeue_request(struct request *rq); |
28 | void __blk_queue_free_tags(struct request_queue *q); | 29 | void __blk_queue_free_tags(struct request_queue *q); |
29 | bool __blk_end_bidi_request(struct request *rq, int error, | 30 | bool __blk_end_bidi_request(struct request *rq, int error, |
@@ -144,9 +145,6 @@ void blk_queue_congestion_threshold(struct request_queue *q); | |||
144 | 145 | ||
145 | int blk_dev_init(void); | 146 | int blk_dev_init(void); |
146 | 147 | ||
147 | void elv_quiesce_start(struct request_queue *q); | ||
148 | void elv_quiesce_end(struct request_queue *q); | ||
149 | |||
150 | 148 | ||
151 | /* | 149 | /* |
152 | * Return the threshold (number of used requests) at which the queue is | 150 | * Return the threshold (number of used requests) at which the queue is |