NFSv4.1: Don't trust attributes if a pNFS LAYOUTCOMMIT is outstanding
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 13 Jan 2014 17:08:11 +0000 (12:08 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 13 Jan 2014 17:08:11 +0000 (12:08 -0500)
commitd8c951c313ed1d7144b55c0d56f7c53220044dda
tree51d2a904da45349403b0db80fb9f8812967ec5dd
parent16a6ddc70920a0686dbf90e092a539c1a4fd7b77
NFSv4.1: Don't trust attributes if a pNFS LAYOUTCOMMIT is outstanding

If a LAYOUTCOMMIT is outstanding, then chances are that the metadata
server may still be returning incorrect values for the change attribute,
ctime, mtime and/or size.
Just ignore those attributes for now, and wait for the LAYOUTCOMMIT
rpc call to finish.

Reported-by: shaobingqing <shaobingqing@bwstor.com.cn>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/inode.c
fs/nfs/nfs4proc.c
fs/nfs/pnfs.h