]> git.baikalelectronics.ru Git - kernel.git/commit
dm integrity: flush the journal on suspend
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 15 Nov 2022 17:48:26 +0000 (12:48 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Dec 2022 10:23:01 +0000 (11:23 +0100)
commitcd330f4fbaf5d2a073199daf78bdee15a6a61d1f
tree6b99d2064f4ec89a9601f85fb4bae4e879e75173
parent5825a460e59be86acceb054323d5ca3c67b173a4
dm integrity: flush the journal on suspend

[ Upstream commit 8c85f425ee9d135dcf1f959b998e50d5e4f9e91d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/md/dm-integrity.c