From 0e375867c3ed59a9007a7adcfb0b6e6f4f362e8e Mon Sep 17 00:00:00 2001 From: tappro Date: Mon, 5 Sep 2005 15:44:26 +0000 Subject: [PATCH] r=alex dparent can be valid not only if resent_req == 0 --- lustre/mds/handler.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index 192e00b..8cdddeb 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -1708,9 +1708,10 @@ static int mds_getattr_lock(struct ptlrpc_request *req, int offset, if (parent_lockh[1].cookie != 0) ldlm_lock_decref(parent_lockh + 1, update_mode); #endif - if (dparent) - l_dput(dparent); } + if (dparent) + l_dput(dparent); + l_dput(dchild); case 1: pop_ctxt(&saved, &obd->obd_lvfs_ctxt, &uc); -- 1.8.3.1