Re: [PATCH] nfs: Fix "Don't increment lock sequence ID after NFS4ERR_MOVED"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2017-01-26 at 15:14 -0500, Chuck Lever wrote:
> Lock sequence IDs are bumped in decode_lock by calling
> nfs_increment_seqid(). nfs_increment_sequid() does not use the
> seqid_mutating_err() function fixed in commit 059aa7348241 ("Don't
> increment lock sequence ID after NFS4ERR_MOVED").
> 
> Fixes: 059aa7348241 ("Don't increment lock sequence ID after ...")
> Signed-off-by: Chuck Lever <chuck.lever@xxxxxxxxxx>
> Tested-by: Xuan Qi <xuan.qi@xxxxxxxxxx>
> Cc: stable@xxxxxxxxxxxxxxx # v3.7+
> ---
>  fs/nfs/nfs4state.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
> index 90e6193..daeb94e 100644
> --- a/fs/nfs/nfs4state.c
> +++ b/fs/nfs/nfs4state.c
> @@ -1091,6 +1091,7 @@ static void nfs_increment_seqid(int status,
> struct nfs_seqid *seqid)
>  		case -NFS4ERR_BADXDR:
>  		case -NFS4ERR_RESOURCE:
>  		case -NFS4ERR_NOFILEHANDLE:
> +		case -NFS4ERR_MOVED:
>  			/* Non-seqid mutating errors */
>  			return;
>  	};
> 

Thanks! Applied...

-- 
Trond Myklebust
Linux NFS client maintainer, PrimaryData
trond.myklebust@xxxxxxxxxxxxxxx
��.n��������+%������w��{.n�����{��w���jg��������ݢj����G�������j:+v���w�m������w�������h�����٥




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux