NFSv4: Retrieve attributes _before_ calling delegreturn
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 28 Apr 2012 20:05:03 +0000 (16:05 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 1 May 2012 19:42:40 +0000 (15:42 -0400)
commite144cbcc251f16c1a14b9256cda73ab4aebe933a
tree4ca37ff9816b9b38277a881429176b804422fe21
parent9e907fec6ef7705ba07e22f034dacf102d29a538
NFSv4: Retrieve attributes _before_ calling delegreturn

In order to retrieve cache consistency attributes before
anyone else has a chance to change the inode, we need to
put the GETATTR op _before_ the DELEGRETURN op.

We can then use that as part of a 'nfs_post_op_update_inode_force_wcc()'
call, to ensure that we update the attributes without clearing our
cached data.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c
fs/nfs/nfs4xdr.c