diff options
author | Jiri Kosina <jkosina@suse.cz> | 2015-11-02 13:46:58 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-11-02 13:46:58 +1100 |
commit | 24ba16bb3d499c49974669cd8429c3e4138ab102 (patch) | |
tree | b5ba034f8ebb7ccb73b111657d6a7cce718ef4f0 /fs/xfs | |
parent | 1f93e4a96c9109378204c147b3eec0d0e8100fde (diff) | |
download | op-kernel-dev-24ba16bb3d499c49974669cd8429c3e4138ab102.zip op-kernel-dev-24ba16bb3d499c49974669cd8429c3e4138ab102.tar.gz |
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 <jkosina@suse.cz>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_trans_ail.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |