From: braam Date: Fri, 24 Jan 2003 19:22:23 +0000 (+0000) Subject: - probable fix for mds refcount problem. touch /mnt/lustre/f cleans up now. X-Git-Tag: v1_7_100~1^94~145 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=0f5b02368ec0825d4cd325ee8292d3b5db867808;p=fs%2Flustre-release.git - probable fix for mds refcount problem. touch /mnt/lustre/f cleans up now. --- diff --git a/lustre/mds/mds_open.c b/lustre/mds/mds_open.c index 4529cf0..21c978a 100644 --- a/lustre/mds/mds_open.c +++ b/lustre/mds/mds_open.c @@ -171,8 +171,6 @@ int mds_open(struct mds_update_record *rec, int offset, struct ptlrpc_request *r list_add(&mfd->mfd_list, &med->med_open_head); spin_unlock(&med->med_open_lock); - out_ldput: - l_dput(dchild); out_unlock: l_dput(parent); ldlm_lock_decref(&lockh, lock_mode); @@ -188,4 +186,8 @@ int mds_open(struct mds_update_record *rec, int offset, struct ptlrpc_request *r CDEBUG(D_INODE, "file "LPX64": addr %p, cookie "LPX64"\n", mfd->mfd_clienthandle.addr, mfd, mfd->mfd_servercookie); RETURN(0); + + out_ldput: + l_dput(dchild); + goto out_unlock; }