dm: simplify start of block stats accounting for bio-based
authorMike Snitzer <snitzer@redhat.com>
Sun, 17 Dec 2017 16:56:48 +0000 (11:56 -0500)
committerMike Snitzer <snitzer@redhat.com>
Sun, 17 Dec 2017 17:05:32 +0000 (12:05 -0500)
commitf3986374f94951b0fec6980e5b2dd621c51b215c
tree28d3386e3d03ff025a2b72710824d57431cea36c
parentbc02cdbe53eadcef75221c3f1f48cdcbdb9cb6ef
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>
drivers/md/dm.c