Re: [PATCH] pm-hibernate: flush block device cache when hibernating
Mikulas Patocka <[email protected]> Fri, 31 Oct 2025 20:29:58 +0100 (CET)
| Newsgroups | gmane.linux.lvm.general |
|---|---|
| Message-ID | <de1f0036-84f9-2923-2c0a-620e702d850b__33527.2250509419$1761939058$gmane$org@redhat.com> |
On Mon, 27 Oct 2025, Askar Safin wrote: > Mikulas Patocka <[email protected]>: > > Hi > > > > Does this patch fix it? > > > > Mikulas > > > > > > From: Mikulas Patocka <[email protected]> > > > > There was reported failure that hibernation doesn't work with > > dm-integrity. The reason for the failure is that the hibernation code > > doesn't issue the FLUSH bio - the data still sits in the dm-integrity > > cache and they are lost when poweroff happens. > > I tested this patch in Qemu on current master (43e9ad0c55a3). Also I > applied Mario's patch > https://lore.kernel.org/linux-pm/[email protected]/ . > It is needed, otherwise you get WARNING when you try to hibernate. > > The patch doesn't work. Yes, I see - the problem is harder than I thought. I've created two patches and I tested them that they work. So, you can try them. Mikulas