All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] zero out delegation in the inode after it has been returned
@ 2011-02-28 21:31 Jim Rees
  2011-02-28 21:39 ` Trond Myklebust
  0 siblings, 1 reply; 12+ messages in thread
From: Jim Rees @ 2011-02-28 21:31 UTC (permalink / raw)
  To: Benny Halevy; +Cc: linux-nfs, peter honeyman

Signed-off-by: Jim Rees <rees@umich.edu>
---
 fs/nfs/delegation.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/nfs/delegation.c b/fs/nfs/delegation.c
index bbbc6bf..5bc4f7e 100644
--- a/fs/nfs/delegation.c
+++ b/fs/nfs/delegation.c
@@ -176,9 +176,11 @@ void nfs_inode_reclaim_delegation(struct inode *inode, struct rpc_cred *cred,
 
 static int nfs_do_return_delegation(struct inode *inode, struct nfs_delegation *delegation, int issync)
 {
+	struct nfs_inode *nfsi = NFS_I(inode);
 	int res = 0;
 
 	res = nfs4_proc_delegreturn(inode, delegation->cred, &delegation->stateid, issync);
+	rcu_assign_pointer(nfsi->delegation, NULL);
 	nfs_free_delegation(delegation);
 	return res;
 }
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-03-01 13:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-28 21:31 [PATCH] zero out delegation in the inode after it has been returned Jim Rees
2011-02-28 21:39 ` Trond Myklebust
2011-02-28 21:54   ` Jim Rees
2011-02-28 22:01     ` Trond Myklebust
2011-02-28 22:04       ` Trond Myklebust
2011-02-28 23:22       ` Jim Rees
2011-03-01  0:00         ` Trond Myklebust
2011-03-01  0:07           ` Trond Myklebust
2011-03-01  4:09           ` J. Bruce Fields
2011-03-01  9:52             ` daniel.gardere
2011-03-01 12:16               ` Trond Myklebust
2011-03-01 13:06                 ` daniel.gardere

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.