From: yury Date: Mon, 25 Oct 2004 14:11:54 +0000 (+0000) Subject: - fixed stupid bug with locking in MDS. It caused clients do not flush local X-Git-Tag: v1_7_100~1856 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=48d7571a38e917cba17a3b76df49ed1a1b65a6a2 - 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. --- 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 &