diff options
author | Dennis Zhou <dennis@kernel.org> | 2019-05-23 22:10:18 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-06-20 11:29:56 +0200 |
commit | a3fb01ba5af066521f3f3421839e501bb2c71805 (patch) | |
tree | eb3032a3a70a2d37e8da4c5d14eda6e58e99e479 /block/blk-core.c | |
parent | block: drbd: no need to check return value of debugfs_create functions (diff) | |
download | linux-a3fb01ba5af066521f3f3421839e501bb2c71805.tar.xz linux-a3fb01ba5af066521f3f3421839e501bb2c71805.zip |
blk-iolatency: only account submitted bios
As is, iolatency recognizes done_bio and cleanup as ending paths. If a
request is marked REQ_NOWAIT and fails to get a request, the bio is
cleaned up via rq_qos_cleanup() and ended in bio_wouldblock_error().
This results in underflowing the inflight counter. Fix this by only
accounting bios that were actually submitted.
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Cc: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-core.c')
0 files changed, 0 insertions, 0 deletions