OSDN Git Service

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>
Thu, 8 Jan 2015 15:55:40 +0000 (08:55 -0700)
commitc68ed59f534c318716c6189050af3c5ea03b8071
tree6c37d638773c80c2f45b9ecb88d9e2ca60c210ba
parent973c01919bce7e3559b62a856b29211ec5ac325c
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