OSDN Git Service

dm integrity: flush the journal on suspend
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 15 Nov 2022 17:48:26 +0000 (12:48 -0500)
committerMike Snitzer <snitzer@kernel.org>
Fri, 18 Nov 2022 15:57:17 +0000 (10:57 -0500)
commit5e5dab5ec763d600fe0a67837dd9155bdc42f961
tree011f64494c79db6cc0d7f8432e6e0541abda5e9e
parent0dfc1f4ceae86a0d09d880ab87625c86c61ed33c
dm integrity: flush the journal on suspend

This commit flushes the journal on suspend. It is prerequisite for the
next commit that enables activating dm integrity devices in read-only mode.

Note that we deliberately didn't flush the journal on suspend, so that the
journal replay code would be tested. However, the dm-integrity code is 5
years old now, so that journal replay is well-tested, and we can make this
change now.

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