From: yury Date: Fri, 6 Oct 2006 13:59:13 +0000 (+0000) Subject: - fixed calling wrong upcall which caused oops. X-Git-Tag: v1_8_0_110~486^2~677 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=c19da21946c63d3e7a5f999f01e4563a774ba351;p=fs%2Flustre-release.git - fixed calling wrong upcall which caused oops. --- diff --git a/lustre/mds/mds_lov.c b/lustre/mds/mds_lov.c index fab513b..890579f 100644 --- a/lustre/mds/mds_lov.c +++ b/lustre/mds/mds_lov.c @@ -718,13 +718,15 @@ static int __mds_lov_synchronize(void *data) obd->obd_name, rc); GOTO(out, rc); } - if (obd->obd_upcall.onu_owner) { - /*This is an hack for mds_notify->mdd_notify, - *When the mds obd in mdd is removed, - *This hack should be removed*/ - LASSERT(obd->obd_upcall.onu_upcall != NULL); - rc = obd->obd_upcall.onu_upcall(NULL, NULL, 0, - obd->obd_upcall.onu_owner); + + if (watched->obd_upcall.onu_owner) { + /* + * This is an hack for mds_notify->mdd_notify, When the mds obd + * in mdd is removed, This hack should be removed. + */ + LASSERT(watched->obd_upcall.onu_upcall != NULL); + rc = watched->obd_upcall.onu_upcall(NULL, NULL, 0, + watched->obd_upcall.onu_owner); } EXIT; out: