Whamcloud - gitweb
Branch: HEAD
authorwangdi <wangdi>
Mon, 9 May 2005 07:07:21 +0000 (07:07 +0000)
committerwangdi <wangdi>
Mon, 9 May 2005 07:07:21 +0000 (07:07 +0000)
miss release  parent pdir locks in mds_open

lustre/mds/mds_open.c

index fcbf815..37d21bf 100644 (file)
@@ -1005,6 +1005,10 @@ got_child:
                  * may conflict with enqueue_order_locks(). so,
                  * drop parent lock and acquire both the locks in
                  * common order. bug 6190 */
+#ifdef S_PDIROPS
+                if (parent_lockh[1].cookie != 0)
+                        ldlm_lock_decref(parent_lockh + 1, update_mode);
+#endif
                 ldlm_lock_decref(parent_lockh, parent_mode);
                 l_dput(dchild);
                 l_dput(dparent);