]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit539b9389335d44a4b00271e32982654fed9c179f
tree4ca37ff9816b9b38277a881429176b804422fe21
parentff48f951284e3aafd7315d47a659e4769e6d27bb
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