From: Trond Myklebust Date: Mon, 21 Oct 2019 18:17:34 +0000 (-0400) Subject: NFSv4: Clear the NFS_DELEGATION_REVOKED flag in nfs_update_inplace_delegation() X-Git-Tag: v5.10.7~3675^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae084a32ee9230ca78c88d646efa0157b2dbca29;p=platform%2Fkernel%2Flinux-rpi.git NFSv4: Clear the NFS_DELEGATION_REVOKED flag in nfs_update_inplace_delegation() If the server sent us a new delegation stateid that is more recent than the one that got revoked, then clear the NFS_DELEGATION_REVOKED flag. Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/delegation.c b/fs/nfs/delegation.c index 7ebeb57..a0f798d 100644 --- a/fs/nfs/delegation.c +++ b/fs/nfs/delegation.c @@ -343,6 +343,7 @@ nfs_update_inplace_delegation(struct nfs_delegation *delegation, delegation->stateid.seqid = update->stateid.seqid; smp_wmb(); delegation->type = update->type; + clear_bit(NFS_DELEGATION_REVOKED, &delegation->flags); } }