dm: eliminate copying of dm_io fields in dm_io_dec_pending
authorMike Snitzer <snitzer@redhat.com>
Sun, 20 Feb 2022 17:57:11 +0000 (12:57 -0500)
committerMike Snitzer <snitzer@redhat.com>
Mon, 21 Feb 2022 20:36:18 +0000 (15:36 -0500)
commit0ab30b4079e103b517bdfc4331507bf8d8dd8f7b
tree21e80e1a46d75b9673c136e855e59f4f164af36c
parent0cdb90f0f306384ecbc60dfd6dc48cdbc1f2d0d8
dm: eliminate copying of dm_io fields in dm_io_dec_pending

There is no need for dm_io_dec_pending() to copy dm_io fields
anymore now that DM provides its own pending_io counters again.

The race documented in commit d208b89401e0 ("dm: fix mempool NULL
pointer race when completing IO") no longer exists now that block
core's in_flight counters aren't used to signal all dm_io is
complete.

Also, rename {start,end}_io_acct to dm_{start,end}_io_acct.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c