From: tappro Date: Wed, 22 Nov 2006 13:38:51 +0000 (+0000) Subject: - fix recovery issue. dropping obd_recovering flag before notify() cause loosing X-Git-Tag: v1_8_0_110~486^2~94 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=046a6dd7ad79e3e5874d21dbba4ea6e5e316e322;p=fs%2Flustre-release.git - fix recovery issue. dropping obd_recovering flag before notify() cause loosing the objects on OST due to orphan destroying. The obd_recovering should be zeroed after notify() --- diff --git a/lustre/mdd/mdd_device.c b/lustre/mdd/mdd_device.c index deb8cea..493c0e2 100644 --- a/lustre/mdd/mdd_device.c +++ b/lustre/mdd/mdd_device.c @@ -196,12 +196,12 @@ static int mdd_recovery_complete(const struct lu_env *env, RETURN(rc); } #endif - obd->obd_recovering = 0; obd_notify(obd->u.mds.mds_osc_obd, NULL, (obd->obd_async_recov ? OBD_NOTIFY_SYNC_NONBLOCK : OBD_NOTIFY_SYNC), NULL); + obd->obd_recovering = 0; obd->obd_type->typ_dt_ops->o_postrecov(obd); /* XXX: orphans handling. */