diff options
author | Keith Busch <keith.busch@intel.com> | 2015-01-07 20:55:44 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-01-08 10:55:40 -0500 |
commit | c68ed59f534c318716c6189050af3c5ea03b8071 (patch) | |
tree | 6c37d638773c80c2f45b9ecb88d9e2ca60c210ba /include | |
parent | 973c01919bce7e3559b62a856b29211ec5ac325c (diff) |
blk-mq: Let drivers cancel requeue_work
Kicking requeued requests will start h/w queues in a work_queue, which
may alter the driver's requested state to temporarily stop them. This
patch exports a method to cancel the q->requeue_work so a driver can be
assured stopped h/w queues won't be started up before it is ready.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/blk-mq.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index addf8a19d806..18684e0bdb8a 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h | |||
@@ -201,6 +201,7 @@ void __blk_mq_end_request(struct request *rq, int error); | |||
201 | 201 | ||
202 | void blk_mq_requeue_request(struct request *rq); | 202 | void blk_mq_requeue_request(struct request *rq); |
203 | void blk_mq_add_to_requeue_list(struct request *rq, bool at_head); | 203 | void blk_mq_add_to_requeue_list(struct request *rq, bool at_head); |
204 | void blk_mq_cancel_requeue_work(struct request_queue *q); | ||
204 | void blk_mq_kick_requeue_list(struct request_queue *q); | 205 | void blk_mq_kick_requeue_list(struct request_queue *q); |
205 | void blk_mq_complete_request(struct request *rq); | 206 | void blk_mq_complete_request(struct request *rq); |
206 | 207 | ||