From: Jiri Kosina Date: Mon, 2 Nov 2015 02:46:58 +0000 (+1100) Subject: xfs: clear PF_NOFREEZE for xfsaild kthread X-Git-Tag: v4.14-rc1~4325^2~2^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=24ba16bb3d499c49974669cd8429c3e4138ab102;p=platform%2Fkernel%2Flinux-rpi.git xfs: clear PF_NOFREEZE for xfsaild kthread Since xfsaild has been converted to kthread in 0030807c, it calls try_to_freeze() during every AIL push iteration. It however doesn't set itself as freezable, and therefore this try_to_freeze() will never do anything. Before (hopefully eventually) kthread freezing gets converted to fileystem freezing, we'd rather mark xfsaild freezable (as it can generate I/O during suspend). Signed-off-by: Jiri Kosina Reviewed-by: Brian Foster Signed-off-by: Dave Chinner --- diff --git a/fs/xfs/xfs_trans_ail.c b/fs/xfs/xfs_trans_ail.c index 1098cf4..06d1a29 100644 --- a/fs/xfs/xfs_trans_ail.c +++ b/fs/xfs/xfs_trans_ail.c @@ -497,6 +497,7 @@ xfsaild( long tout = 0; /* milliseconds */ current->flags |= PF_MEMALLOC; + set_freezable(); while (!kthread_should_stop()) { if (tout && tout <= 20)