jfs: Add missing set_freezable() for freezable kthread
PATCH 1/1 jfs: Add missing set_freezable() for freezable kthread
The jfsIOWait() thread calls try_to_freeze() but lacks set_freezable(), causing it to remain non-freezable by default. This prevents proper freezing during system suspend.
Add set_freezable() to make the thread freezable as intended.
Signed-off-by Haotian Zhang <[email protected]>
--- fs/jfs/jfs_logmgr.c | 1 + 1 file changed, 1 insertion(+)
fs/jfs/jfs_logmgr.c +1 -0
@@ -2311,6 +2311,7 @@ int jfsIOWait(void *arg) {struct lbuf *bp; +set_freezable (); do { spin_lock_irq(&log_redrive_lock); while ((bp = log_redrive_list)) {
Signature · 1 line
2.25.1