blk-mq: provide internal in-flight variant
authorJens Axboe <axboe@kernel.dk>
Tue, 8 Aug 2017 23:51:45 +0000 (17:51 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 9 Aug 2017 19:09:28 +0000 (13:09 -0600)
commitf299b7c7a9dee64425e5965bd4f56dc024c1befc
treed81520896fad3b9d3e87c19d538ec00c052d1b7c
parent0609e0efc5e15195ecf8c6d2f2e890d98760e337
blk-mq: provide internal in-flight variant

We don't have to inc/dec some counter, since we can just
iterate the tags. That makes inc/dec a noop, but means we
have to iterate busy tags to get an in-flight count.

Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
block/blk-mq.h
block/genhd.c
include/linux/genhd.h