]> git.baikalelectronics.ru Git - kernel.git/commit
dm integrity: WARN_ON if variables representing journal usage get out of sync
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 21 Jul 2017 17:16:06 +0000 (13:16 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 25 Jul 2017 14:11:13 +0000 (10:11 -0400)
commitaa03a91ffaefcffb397cddf88b97215b3eff726d
tree4a2626accb37dbad4c356e790dadcace46e57a53
parenta7c3e62bdc71d33f75803115d44e3ee7dab3d811
dm integrity: WARN_ON if variables representing journal usage get out of sync

If this WARN_ON triggers it speaks to programmer error, and likely
implies corruption, but no released kernel should trigger it.  This
WARN_ON serves to assist DM integrity developers as changes are
made/tested in the future.

BUG_ON is excessive for catching programmer error, if a user or
developer would like warnings to trigger a panic, they can enable that
via /proc/sys/kernel/panic_on_warn

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