xfs
[Top] [All Lists]

Re: [PATCH] Revert "xfs: clear PF_NOFREEZE for xfsaild kthread"

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: [PATCH] Revert "xfs: clear PF_NOFREEZE for xfsaild kthread"
From: Brian Foster <bfoster@xxxxxxxxxx>
Date: Wed, 13 Jan 2016 08:22:26 -0500
Cc: xfs@xxxxxxxxxxx, jkosina@xxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1452661968-11482-1-git-send-email-david@xxxxxxxxxxxxx>
References: <1452661968-11482-1-git-send-email-david@xxxxxxxxxxxxx>
User-agent: Mutt/1.5.24 (2015-08-30)
On Wed, Jan 13, 2016 at 04:12:48PM +1100, Dave Chinner wrote:
> This reverts commit 24ba16bb3d499c49974669cd8429c3e4138ab102 as it
> prevents machines from suspending. This regression occurs when the
> xfsaild is idle on entry to suspend, and so there s no activity to
> wake it from it's idle sleep and hence see that it is supposed to
> freeze. Hence the freezer times out waiting for it and suspend is
> cancelled.
> 
> There is no obvious fix for this short of freezing the filesystem
> properly, so revert this change for now.
> 
> Signed-off-by: Dave Chinner <david@xxxxxxxxxxxxx>
> ---

Reviewed-by: Brian Foster <bfoster@xxxxxxxxxx>

>  fs/xfs/xfs_trans_ail.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/fs/xfs/xfs_trans_ail.c b/fs/xfs/xfs_trans_ail.c
> index aa67339..4f18fd9 100644
> --- a/fs/xfs/xfs_trans_ail.c
> +++ b/fs/xfs/xfs_trans_ail.c
> @@ -497,7 +497,6 @@ xfsaild(
>       long            tout = 0;       /* milliseconds */
>  
>       current->flags |= PF_MEMALLOC;
> -     set_freezable();
>  
>       while (!kthread_should_stop()) {
>               if (tout && tout <= 20)
> -- 
> 2.5.0
> 
> _______________________________________________
> xfs mailing list
> xfs@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/xfs

<Prev in Thread] Current Thread [Next in Thread>