mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-04 19:22:08 -04:00
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 <vulab@iscas.ac.cn> Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
This commit is contained in:
committed by
Dave Kleikamp
parent
9218dc26fd
commit
eb0cfcf265
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user