Whamcloud - gitweb
- fixed releasing lock with correct mode in mds_id2locked_dentry()
authoryury <yury>
Wed, 26 Jan 2005 08:37:37 +0000 (08:37 +0000)
committeryury <yury>
Wed, 26 Jan 2005 08:37:37 +0000 (08:37 +0000)
lustre/mds/handler.c

index 19cc81b..6cf5d7b 100644 (file)
@@ -283,7 +283,7 @@ struct dentry *mds_id2locked_dentry(struct obd_device *obd, struct lustre_id *id
                 retval = ERR_PTR(-EIO); /* XXX translate ldlm code */
 #ifdef S_PDIROPS
                 if (lockh[1].cookie)
-                        ldlm_lock_decref(lockh + 1, LCK_CW);
+                        ldlm_lock_decref(lockh + 1, *mode);
 #endif
         }