diff options
author | Omar Sandoval <osandov@fb.com> | 2018-04-26 10:21:58 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-04-26 18:02:00 +0300 |
commit | 6131837b1de66116459ef4413e26fdbc70d066dc (patch) | |
tree | c6b85c5075746a1369e95593f1d93769b3938e5d /fs/proc/nommu.c | |
parent | 69bfd470f4623d2d57ad62cb33791cded0c662f4 (diff) | |
download | linux-6131837b1de66116459ef4413e26fdbc70d066dc.tar.xz |
blk-mq: count allocated but not started requests in iostats inflight
In the legacy block case, we increment the counter right after we
allocate the request, not when the driver handles it. In both the legacy
and blk-mq cases, part_inc_in_flight() is called from
blk_account_io_start() right after we've allocated the request. blk-mq
only considers requests started requests as inflight, but this is
inconsistent with the legacy definition and the intention in the code.
This removes the started condition and instead counts all allocated
requests.
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>
Diffstat (limited to 'fs/proc/nommu.c')
0 files changed, 0 insertions, 0 deletions