blk-mq: introduce blk_mq_delay_kick_requeue_list()
authorMike Snitzer <snitzer@redhat.com>
Wed, 14 Sep 2016 17:28:30 +0000 (13:28 -0400)
committerJens Axboe <axboe@fb.com>
Wed, 14 Sep 2016 17:48:34 +0000 (11:48 -0600)
commit2849450ad39d2e699fda2d5c6f41e05d87fd7004
tree086e7fd583a30bdefcfe01bd3fef60eeda4ad742
parentc5c5ca777469f0ff854f1da0aff9b3a9051b3ef7
blk-mq: introduce blk_mq_delay_kick_requeue_list()

blk_mq_delay_kick_requeue_list() provides the ability to kick the
q->requeue_list after a specified time.  To do this the request_queue's
'requeue_work' member was changed to a delayed_work.

blk_mq_delay_kick_requeue_list() allows DM to defer processing requeued
requests while it doesn't make sense to immediately requeue them
(e.g. when all paths in a DM multipath have failed).

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c
include/linux/blk-mq.h
include/linux/blkdev.h