]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: provide a helper to check if a queue is busy
authorJens Axboe <axboe@kernel.dk>
Thu, 8 Nov 2018 16:03:51 +0000 (09:03 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Nov 2018 17:24:23 +0000 (10:24 -0700)
commit4b743e3367a44016a191a241300928aa07d19e9f
tree9cf36f53aad46a716d8b7476da384823d82e9e38
parentc4034a34805c292a157be4227e9a10515d4fd23a
blk-mq: provide a helper to check if a queue is busy

Returns true if the queue currently has requests pending,
false if not.

DM can use this to replace the atomic_inc/dec they do per device
to see if a device is busy.

Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
include/linux/blk-mq.h