diff options
author | Mike Snitzer <[email protected]> | 2022-01-28 10:58:41 -0500 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-01-28 12:28:15 -0700 |
commit | b879f915bc48a18d4f4462729192435bb0f17052 (patch) | |
tree | a6872f00546c3ee5ae32a73dadc02712a7c27b65 /drivers/usb/cdns3/cdns3-ep0.c | |
parent | f524d9c95fab54783d0038f7a3e8c014d5b56857 (diff) |
dm: properly fix redundant bio-based IO accounting
Record the start_time for a bio but defer the starting block core's IO
accounting until after IO is submitted using bio_start_io_acct_time().
This approach avoids the need to mess around with any of the
individual IO stats in response to a bio_split() that follows bio
submission.
Reported-by: Bud Brown <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Cc: [email protected]
Depends-on: e45c47d1f94e ("block: add bio_start_io_acct_time() to control start_time")
Signed-off-by: Mike Snitzer <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ep0.c')
0 files changed, 0 insertions, 0 deletions