From 48d7571a38e917cba17a3b76df49ed1a1b65a6a2 Mon Sep 17 00:00:00 2001 From: yury Date: Mon, 25 Oct 2004 14:11:54 +0000 Subject: [PATCH] - fixed stupid bug with locking in MDS. It caused clients do not flush local caches on rename, what caused in turn stat to success after rename and to fail creating new the same name again. Actually this is most of 24* tests from sanity.sh and runtests. --- lustre/mds/mds_reint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/mds/mds_reint.c b/lustre/mds/mds_reint.c index 1de982c..f1a1fa9 100644 --- a/lustre/mds/mds_reint.c +++ b/lustre/mds/mds_reint.c @@ -1099,7 +1099,7 @@ int enqueue_4ordered_locks(struct obd_device *obd,struct ldlm_res_id *p1_res_id, for (i = 0; i < 4; i++) { flags = 0; if (res_id[i]->name[0] == 0) - break; + continue; if (i != 0 && !memcmp(res_id[i], res_id[i-1], sizeof(*res_id[i])) && (policies[i]->l_inodebits.bits & -- 1.8.3.1