]> git.baikalelectronics.ru Git - kernel.git/commit
blk-iolatency: only account submitted bios
authorDennis Zhou <dennis@kernel.org>
Thu, 23 May 2019 20:10:18 +0000 (16:10 -0400)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Jun 2019 09:29:56 +0000 (03:29 -0600)
commit3979d8465f43c2d687a2726ad8903f254043e08e
treeeb3032a3a70a2d37e8da4c5d14eda6e58e99e479
parent5a4c50c6ddfd5c6f8d53a97d4ef473a04b2a34ce
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>
block/blk-iolatency.c