Skip to content

Commit

Permalink
xfs: clear PF_NOFREEZE for xfsaild kthread
Browse files Browse the repository at this point in the history
Since xfsaild has been converted to kthread in 0030807, 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 <jkosina@suse.cz>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
  • Loading branch information
Jiri Kosina authored and dchinner committed Nov 2, 2015
1 parent 1f93e4a commit 24ba16b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/xfs/xfs_trans_ail.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ xfsaild(
long tout = 0; /* milliseconds */

current->flags |= PF_MEMALLOC;
set_freezable();

while (!kthread_should_stop()) {
if (tout && tout <= 20)
Expand Down

0 comments on commit 24ba16b

Please sign in to comment.