]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Also ask for attributes when downgrading to a READ-only state
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 19 Dec 2016 16:36:41 +0000 (11:36 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 19 Dec 2016 22:29:58 +0000 (17:29 -0500)
commita5baf4b4cd762424e2158e79dcbdb0049f6c526b
tree8e06ad6dd9da0c943d9e5cdeb4d841b51787257e
parent9fd7b32a2a80c5c61a05afea99f726a86cdfc493
NFSv4: Also ask for attributes when downgrading to a READ-only state

If we're downgrading from a READ+WRITE mode to a READ-only mode, then
ask for cache consistency attributes so that we avoid the revalidation
in nfs_close_context()

Fixes: 362800fde69a ("NFSv4: Don't request a GETATTR on open_downgrade.")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c