Whamcloud - gitweb
Branch: b_release_1_4_6
authorwangdi <wangdi>
Thu, 2 Mar 2006 03:41:45 +0000 (03:41 +0000)
committerwangdi <wangdi>
Thu, 2 Mar 2006 03:41:45 +0000 (03:41 +0000)
b=10253
Just forget fix the lock_mode in release lock

lustre/mds/mds_join.c

index 7e33da4..1a56542 100644 (file)
@@ -315,9 +315,9 @@ cleanup:
 
         if (dlm_handles[0].cookie != 0) {
                 if (rc)
-                        ldlm_lock_decref(&dlm_handles[0], LCK_PW);
+                        ldlm_lock_decref(&dlm_handles[0], LCK_EX);
                 else
-                        ptlrpc_save_lock(req, &dlm_handles[0], LCK_PW);
+                        ptlrpc_save_lock(req, &dlm_handles[0], LCK_EX);
         }
         if (de_tail)
                 l_dput(de_tail);