blk-mq: provide mq_ops->busy() hook
authorJens Axboe <axboe@kernel.dk>
Mon, 29 Oct 2018 16:15:10 +0000 (10:15 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 3 Nov 2018 20:46:07 +0000 (14:46 -0600)
commit7da3819079f66a1da94b224c89ac88b29cea268e
tree5a5cf537cf25ba5467f64b831840987c1f559eff
parentc8a079aeb4009cf2858abfdbe8af9cc831fe9429
blk-mq: provide mq_ops->busy() hook

We'll hook into this from blk_lld_busy(), allowing blk-mq to also
return whether or not a given queue currently has requests in
progress.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Tested-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
include/linux/blk-mq.h