blk-mq: enable checking two part inflight counts at the same time
authorJens Axboe <axboe@kernel.dk>
Fri, 4 Aug 2017 14:47:59 +0000 (08:47 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 4 Aug 2017 14:47:59 +0000 (08:47 -0600)
commit5d016f1b9f3ff1eafaa6e1c289e7a68a11e7083b
tree172bd8c9a90f7584e99f191fd3cb77f3a0123574
parent6ed427b02bd651f61a0874a913982058f02457c6
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.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-mq.c