summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server/src/nfs3-helpers.c
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-08-31 06:50:26 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-08-31 07:44:11 -0700
commit713fd9536459f730450fc06177c0feea6d6bdd28 (patch)
tree2f1ebf113f173d093ea37163e7d013073db3ee2e /xlators/nfs/server/src/nfs3-helpers.c
parentf6285605745d566bf7c43599285783f9409b7315 (diff)
nfs3: Dont ref cached fd after fd_lookup
..because fd_lookup returns a ref'd fd_t. Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1397 (Cached dir fd_ts are a leakin') URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1397
Diffstat (limited to 'xlators/nfs/server/src/nfs3-helpers.c')
-rw-r--r--xlators/nfs/server/src/nfs3-helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/nfs/server/src/nfs3-helpers.c b/xlators/nfs/server/src/nfs3-helpers.c
index feeeda08bd8..116d145033a 100644
--- a/xlators/nfs/server/src/nfs3-helpers.c
+++ b/xlators/nfs/server/src/nfs3-helpers.c
@@ -1788,7 +1788,7 @@ nfs3_dir_open_and_resume (nfs3_call_state_t *cs, nfs3_resume_fn_t resume)
fd = fd_lookup (cs->resolvedloc.inode, 0);
if (fd) {
gf_log (GF_NFS3, GF_LOG_TRACE, "fd found in state: ref: %d", fd->refcount);
- cs->fd = fd_ref (fd); /* Gets unrefd when the call state is wiped. */
+ cs->fd = fd; /* Gets unrefd when the call state is wiped. */
cs->resolve_ret = 0;
nfs3_call_resume (cs);
ret = 0;