]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 1 Oct 2018 12:55:46 +0000 (14:55 +0200)
commit416d3aa7fd94a26c923a24d4493409e094231026
treeabb5a779a581c82d1734538b19d870d51f2a3b85
parentc3a5569e26f59f9a8560be8ef7971ea09903805e
blk-mq: fix sysfs inflight counter

BugLink: http://bugs.launchpad.net/bugs/1794889
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
block/blk-mq.c
block/blk-mq.h
block/genhd.c
block/partition-generic.c
include/linux/genhd.h