diff options
author | Mike Snitzer <snitzer@redhat.com> | 2017-12-17 11:56:48 -0500 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-12-17 12:05:32 -0500 |
commit | f3986374f94951b0fec6980e5b2dd621c51b215c (patch) | |
tree | 28d3386e3d03ff025a2b72710824d57431cea36c /block/blk-exec.c | |
parent | bc02cdbe53eadcef75221c3f1f48cdcbdb9cb6ef (diff) | |
download | linux-f3986374f94951b0fec6980e5b2dd621c51b215c.tar.bz2 |
dm: simplify start of block stats accounting for bio-based
No apparent need to generic_start_io_acct() until before the IO is ready
for submission. start_io_acct() is the proper place to do this
accounting -- it is also where DM accounts for pending IO and, if
enabled, starts dm-stats accounting.
Replace start_io_acct()'s part_round_stats() with generic_start_io_acct().
This eliminates needing to take part_stat_lock() multiple times when
starting an IO on bio-based devices.
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'block/blk-exec.c')
0 files changed, 0 insertions, 0 deletions