]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: change blk_mq_queue_busy() to blk_mq_queue_inflight()
authorJens Axboe <axboe@kernel.dk>
Tue, 18 Dec 2018 04:11:17 +0000 (21:11 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 18 Dec 2018 04:31:42 +0000 (21:31 -0700)
commita78f172a3069b8cb6a2b8c0c63f04e3fde793b3e
tree60f1445af634c7162225f86c9a791b6e2a6b382c
parent4653825659b621d2103852dbd89a7327da48453f
blk-mq: change blk_mq_queue_busy() to blk_mq_queue_inflight()

There's a single user of this function, dm, and dm just wants
to check if IO is inflight, not that it's just allocated.

This fixes a hang with srp/002 in blktests with dm, where it tries
to suspend but waits for inflight IO to finish first. As it checks
for just allocated requests, this fails.

Tested-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
drivers/md/dm.c
include/linux/blk-mq.h