blk-mq: enable checking two part inflight counts at the same time mq-inflight
authorJens Axboe <axboe@kernel.dk>
Tue, 8 Aug 2017 23:53:33 +0000 (17:53 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 8 Aug 2017 23:53:33 +0000 (17:53 -0600)
commit6ddf6d661bf8e47f684d15126133676c38ec8bce
tree65505b44955b98268a0933de49b9ba070d333049
parent6ba6e8784934d11f3dfbb7aabf68cdc434d80d14
blk-mq: enable checking two part inflight counts at the same time

Modify blk_mq_in_flight() to count both a partition and root at
the same time. Then we only have to call it once, instead of
potentially looping the tags twice.

Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-mq.c