diff options
author | Mike Snitzer <snitzer@redhat.com> | 2016-09-14 13:28:30 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-09-14 11:48:34 -0600 |
commit | 2849450ad39d2e699fda2d5c6f41e05d87fd7004 (patch) | |
tree | 086e7fd583a30bdefcfe01bd3fef60eeda4ad742 /include/linux/blkdev.h | |
parent | c5c5ca777469f0ff854f1da0aff9b3a9051b3ef7 (diff) | |
download | lwn-2849450ad39d2e699fda2d5c6f41e05d87fd7004.tar.gz lwn-2849450ad39d2e699fda2d5c6f41e05d87fd7004.zip |
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>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 69aae720f4ef..c47c358ba052 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -449,7 +449,7 @@ struct request_queue { struct list_head requeue_list; spinlock_t requeue_lock; - struct work_struct requeue_work; + struct delayed_work requeue_work; struct mutex sysfs_lock; |