dm: add WARN_ON_ONCE to dm_submit_bio_remap
authorMike Snitzer <snitzer@redhat.com>
Tue, 8 Mar 2022 22:15:19 +0000 (17:15 -0500)
committerMike Snitzer <snitzer@redhat.com>
Thu, 10 Mar 2022 18:44:43 +0000 (13:44 -0500)
commit0a8e9599b91db84b25e4f13e89ed9b5cc3c2d15f
tree11af4892e9c416e0b2edf7ea6ae03b911ec229c8
parentb99fdcdc36369d2a3a26bf44736d420eb629d8b7
dm: add WARN_ON_ONCE to dm_submit_bio_remap

If a target uses dm_submit_bio_remap() it should set
ti->accounts_remapped_io.

Also, switch dm_start_io_acct() WARN_ON to WARN_ON_ONCE.

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