System: Operating System: Kubuntu 22.04
Background
Before going into suspend, user space processes and (some) kernel threads get frozen. If the freezing fails, it will either be due to a user space process or a kernel thread failing to freeze.
To freeze a user space process, the kernel sends it a signal that is handled automatically and, once received, cannot be ignored. If, however, the process is in the uninterruptible sleep state (e.g. waiting for I/O that cannot complete due to the device being unavailable), it will not receive the signal straight away. If this delay lasts longer than 20s (=default freeze timeout, see /sys/power/pm_freeze_timeout (in miliseconds)), the freezing will fail.
What is causing the issue:
The log & MEGS points to a NFS kernel thread that refuses to freeze.
NFS have been historically known for causing issues like that.
What I have tried:
ps kill -9 PROCESS
It does not kill the frozen process
systemctl stop autofs
or
systemctl stop nfs-kernel-server
Allow the the system to enter into SLEEP / SUSPEND state. But the frozen process are back upon starting either service back !!!
ERROR message
[ 43.579170] Freezing of tasks failed after 20.004 seconds (9 tasks refusing to freeze, wq_busy=0):
[ 43.579219] task:lockd state:I stack: 0 pid: 1979 ppid: 2 flags:0x00004000
Question: How can I "unfreeze / unlock" these process ?
DMSG
ps aux