NFSv4: Don't ask for the change attribute when reclaiming state
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 10 Nov 2016 20:47:26 +0000 (15:47 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 1 Dec 2016 22:21:36 +0000 (17:21 -0500)
We don't need to ask for the change attribute when returning a delegation
or recovering from a server reboot, and it could actually cause us to
obtain an incorrect value if we're using a pNFS flavour that requires
LAYOUTCOMMIT.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c

index b582df89c0830c08f7189d7a41e30aeb7390b7c4..c0628f78ed98f438afbada00269bffddfd4e599c 100644 (file)
@@ -226,7 +226,6 @@ static const u32 nfs4_pnfs_open_bitmap[3] = {
 
 static const u32 nfs4_open_noattr_bitmap[3] = {
        FATTR4_WORD0_TYPE
-       | FATTR4_WORD0_CHANGE
        | FATTR4_WORD0_FILEID,
 };