diff options
author | Ming Lei <[email protected]> | 2021-05-11 23:22:33 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2021-05-24 06:47:21 -0600 |
commit | 84da7acc3ba53af26f15c4b0ada446127b7a7836 (patch) | |
tree | b9b3f6491319d187f8a66f5fcaff30d6941c818a /scripts/gdb/linux/tasks.py | |
parent | 8c390ff910c5500fc16cca6f90ac2a60c7c84979 (diff) |
block: avoid double io accounting for flush request
For flush request, rq->end_io() may be called two times, one is from
timeout handling(blk_mq_check_expired()), another is from normal
completion(__blk_mq_end_request()).
Move blk_account_io_flush() after flush_rq->ref drops to zero, so
io accounting can be done just once for flush request.
Fixes: b68663186577 ("block: add iostat counters for flush requests")
Reviewed-by: Bart Van Assche <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Tested-by: John Garry <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions