blk-mq: Let drivers cancel requeue_work
authorKeith Busch <keith.busch@intel.com>
Thu, 8 Jan 2015 01:55:44 +0000 (18:55 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:57 +0000 (12:54 -0600)
commit0d27ae38b85f0ed62b681b007eaf00be622057b6
tree77c326ca22904c55c0fa11659619000f24cbb7a8
parentf54c5dc9c9e1bd8f8f16b0eb496fe62803617d5c
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>
block/blk-mq.c
include/linux/blk-mq.h