]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: fix sysfs inflight counter
authorOmar Sandoval <osandov@fb.com>
Thu, 26 Apr 2018 07:21:59 +0000 (00:21 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 26 Apr 2018 15:02:01 +0000 (09:02 -0600)
commit5a31349b9e2d01be82e117f656366a940e002abd
tree42ecea860351829817753e8ce2c4205a8aaff8b1
parent35c062a3831066d4d4b89b2ed91675f6d5f15bc1
blk-mq: fix sysfs inflight counter

When the blk-mq inflight implementation was added, /proc/diskstats was
converted to use it, but /sys/block/$dev/inflight was not. Fix it by
adding another helper to count in-flight requests by data direction.

Fixes: 2baa05d92614 ("blk-mq: provide internal in-flight variant")
Signed-off-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
block/partition-generic.c
include/linux/genhd.h