linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] fs/9p: Fid is not valid after a failed clunk.
@ 2011-07-11 16:40 Aneesh Kumar K.V
  2011-07-11 16:40 ` [PATCH 2/3] fs/9p: When doing inode lookup compare qid details and inode mode bits Aneesh Kumar K.V
  2011-07-11 16:41 ` [PATCH 3/3] hw/9pfs: Always ask new inode in create Aneesh Kumar K.V
  0 siblings, 2 replies; 3+ messages in thread
From: Aneesh Kumar K.V @ 2011-07-11 16:40 UTC (permalink / raw)
  To: v9fs-developer; +Cc: linux-fsdevel, linux-kernel, Aneesh Kumar K.V

free the fid even in case of failed clunk.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
---
 net/9p/client.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/net/9p/client.c b/net/9p/client.c
index d225158..71b7749 100644
--- a/net/9p/client.c
+++ b/net/9p/client.c
@@ -1249,9 +1249,11 @@ int p9_client_clunk(struct p9_fid *fid)
 	P9_DPRINTK(P9_DEBUG_9P, "<<< RCLUNK fid %d\n", fid->fid);
 
 	p9_free_req(clnt, req);
-	p9_fid_destroy(fid);
-
 error:
+	/*
+	 * Fid is not valid even after a failed clunk
+	 */
+	p9_fid_destroy(fid);
 	return err;
 }
 EXPORT_SYMBOL(p9_client_clunk);
-- 
1.7.4.1

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

end of thread, other threads:[~2011-07-11 16:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-11 16:40 [PATCH 1/3] fs/9p: Fid is not valid after a failed clunk Aneesh Kumar K.V
2011-07-11 16:40 ` [PATCH 2/3] fs/9p: When doing inode lookup compare qid details and inode mode bits Aneesh Kumar K.V
2011-07-11 16:41 ` [PATCH 3/3] hw/9pfs: Always ask new inode in create Aneesh Kumar K.V

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).