Whamcloud - gitweb
r=alex
authortappro <tappro>
Mon, 5 Sep 2005 15:44:26 +0000 (15:44 +0000)
committertappro <tappro>
Mon, 5 Sep 2005 15:44:26 +0000 (15:44 +0000)
dparent can be valid not only if resent_req == 0

lustre/mds/handler.c

index 192e00b..8cdddeb 100644 (file)
@@ -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);