Re: [PATCH v2 0/4] power: wire-up filesystem freeze/thaw with suspend/resume
From: Askar Safin
Date: Sun Jul 20 2025 - 15:24:23 EST
Hi, Christian Brauner, Jan Kara and other contributors of this patchset.
I did experiments on my laptop, and these experiments show that this patchset does not solve various longstanding problems related to suspend and filesystems. (Even if I enable /sys/power/freeze_filesystems )
Now let me describe problems I had in the past (and still have!) and then experiments I did and their results.
So, I had these 3 problems:
- Suspend doesn't work if fstrim in progress (note that I use btrfs as root file system)
- Suspend doesn't work if scrub in progress
- Suspend doesn't work if we try to read from fuse-sshfs filesystem while network is down
Let me describe third problem in more detail. To reproduce you need to do this:
- Mount remote filesystem using sshfs (it is based on ssh and fuse)
- Disable internet
- Run command "ls" in that sshfs filesystem (this command will, of course, hang, because network is down)
- Then suspend
Suspend will not work.
Does your patchset supposed to fix these problems?
Okay, so just now I was able to reproduce all 3 problems on latest mainline ( f4a40a4282f467ec99745c6ba62cb84346e42139 ), which (as well as I understand) has this patchset applied.
I reproduced them with /sys/power/freeze_filesystems set to both 0 and 1 (thus I did 3 * 2 = 6 experiments).
I'm available for further testing.
--
Askar Safin