Commit eb0cfcf2 authored by Haotian Zhang's avatar Haotian Zhang Committed by Dave Kleikamp
Browse files

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: default avatarHaotian Zhang <vulab@iscas.ac.cn>
Signed-off-by: default avatarDave Kleikamp <dave.kleikamp@oracle.com>
parent 9218dc26
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)) {