]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
blk-mq: fix sysfs inflight counter
authorOmar Sandoval <osandov@fb.com>
Thu, 26 Apr 2018 07:21:59 +0000 (00:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Jun 2018 19:02:49 +0000 (04:02 +0900)
commit06beec8716407961d6c4a74f1feaecd72013fa8b
tree08e4f90b95908795dd4824def2503d8d225a88bf
parent11ac08bd73ebfda3bb0c7b748d0306bdb658e6fe
blk-mq: fix sysfs inflight counter

[ Upstream commit bf0ddaba65ddbb2715af97041da8e7a45b2d8628 ]

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: f299b7c7a9de ("blk-mq: provide internal in-flight variant")
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
block/blk-mq.c
block/blk-mq.h
block/genhd.c
block/partition-generic.c
include/linux/genhd.h