]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: enable checking two part inflight counts at the same time
authorJens Axboe <axboe@kernel.dk>
Tue, 8 Aug 2017 23:53:33 +0000 (17:53 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 9 Aug 2017 19:09:33 +0000 (13:09 -0600)
commitd349923b2c9a006a2345e45458ac44bd561a3d36
tree8da4ed2c4ad00ed7469ebe90bdc741830ffa0426
parent4c0fef6fb95269d6dd4f6a9188e75d05156b2c7b
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