• Mike Snitzer's avatar
    dm: simplify start of block stats accounting for bio-based · f3986374
    Mike Snitzer authored
    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: default avatarMike Snitzer <snitzer@redhat.com>
    f3986374
dm.c 68.9 KB