diff --git a/lustre/mds/mds_lov.c b/lustre/mds/mds_lov.c index 1a2b681eeff38e3eda7db2e722adca215122ddb2..c16a9775f61ada9cc136dbff5e3751bbc03ff60a 100644 --- a/lustre/mds/mds_lov.c +++ b/lustre/mds/mds_lov.c @@ -731,8 +731,10 @@ out: /* Deactivate it for safety */ CERROR("%s sync failed %d, deactivating\n", obd_uuid2str(uuid), rc); - obd_notify(mds->mds_osc_obd, watched, OBD_NOTIFY_INACTIVE, - NULL); + if (!obd->obd_stopping && mds->mds_osc_obd && + !mds->mds_osc_obd->obd_stopping && !watched->obd_stopping) + obd_notify(mds->mds_osc_obd, watched, + OBD_NOTIFY_INACTIVE, NULL); } else { /* We've successfully synced at least 1 OST and are ready to handle client requests */