From a4476659fa6b853e2c46d8f9d4d8f4770f9fcb19 Mon Sep 17 00:00:00 2001 From: yury Date: Wed, 26 Jan 2005 08:37:37 +0000 Subject: [PATCH] - fixed releasing lock with correct mode in mds_id2locked_dentry() --- lustre/mds/handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index 19cc81b..6cf5d7b 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -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 } -- 1.8.3.1