Skip to content

Commit fd8f88f

Browse files
ISCAS-VulabSasha Levin
authored andcommitted
jfs: Add missing set_freezable() for freezable kthread
[ Upstream commit eb0cfcf265714b419cc3549895a00632e76732ae ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 0efed79 commit fd8f88f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/jfs/jfs_logmgr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2322,6 +2322,7 @@ int jfsIOWait(void *arg)
23222322
{
23232323
struct lbuf *bp;
23242324

2325+
set_freezable();
23252326
do {
23262327
spin_lock_irq(&log_redrive_lock);
23272328
while ((bp = log_redrive_list)) {

0 commit comments

Comments
 (0)