From 1623c927181f76588cb0996dbb77fe26f294aaa9 Mon Sep 17 00:00:00 2001 From: wangdi Date: Fri, 12 Nov 2004 14:50:09 +0000 Subject: [PATCH] Branch HEAD b3980 GETATTR request should send to it own mdc, not its parent. r:bzzz --- lustre/lmv/lmv_intent.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/lmv/lmv_intent.c b/lustre/lmv/lmv_intent.c index 61b9c0b..e4b7e22 100644 --- a/lustre/lmv/lmv_intent.c +++ b/lustre/lmv/lmv_intent.c @@ -233,7 +233,7 @@ int lmv_intent_getattr(struct obd_export *exp, struct lustre_id *pid, struct lmv_obd *lmv = &obd->u.lmv; struct mds_body *body = NULL; struct lustre_id rpid = *pid; - struct lmv_obj *obj, *obj2; + struct lmv_obj *obj = NULL, *obj2 = NULL; struct mea *mea; int rc = 0, mds; ENTRY; @@ -243,6 +243,7 @@ int lmv_intent_getattr(struct obd_export *exp, struct lustre_id *pid, * slaves if requested object is splitted directory */ CDEBUG(D_OTHER, "revalidate attrs for "DLID4"\n", OLID4(cid)); mds = id_group(cid); +#if 0 obj = lmv_grab_obj(obd, cid); if (obj) { /* in fact, we need not this with current intent_lock(), @@ -253,6 +254,7 @@ int lmv_intent_getattr(struct obd_export *exp, struct lustre_id *pid, } lmv_put_obj(obj); } +#endif } else { CDEBUG(D_OTHER, "INTENT getattr for %*s on "DLID4"\n", len, name, OLID4(pid)); -- 1.8.3.1