summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2015-01-08 02:55:45 +0100
committerJens Axboe <axboe@fb.com>2015-01-08 16:55:53 +0100
commit1885b24d23716e09b9c952822b05fd7f68099cdb (patch)
tree13cfd695ad4548766095cfff8afee07bba49b5a1 /include
parentblk-mq: Let drivers cancel requeue_work (diff)
downloadlinux-1885b24d23716e09b9c952822b05fd7f68099cdb.tar.xz
linux-1885b24d23716e09b9c952822b05fd7f68099cdb.zip
blk-mq: Add helper to abort requeued requests
Adds a helper function a driver can use to abort requeued requests in case any are pending when h/w queues are being removed. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/blk-mq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h
index 18684e0bdb8a..5735e7130d63 100644
--- a/include/linux/blk-mq.h
+++ b/include/linux/blk-mq.h
@@ -203,6 +203,7 @@ void blk_mq_requeue_request(struct request *rq);
void blk_mq_add_to_requeue_list(struct request *rq, bool at_head);
void blk_mq_cancel_requeue_work(struct request_queue *q);
void blk_mq_kick_requeue_list(struct request_queue *q);
+void blk_mq_abort_requeue_list(struct request_queue *q);
void blk_mq_complete_request(struct request *rq);
void blk_mq_stop_hw_queue(struct blk_mq_hw_ctx *hctx);