Whamcloud - gitweb
b=13175
authornathan <nathan>
Tue, 31 Jul 2007 15:54:20 +0000 (15:54 +0000)
committernathan <nathan>
Tue, 31 Jul 2007 15:54:20 +0000 (15:54 +0000)
i=green
i=adilger
Fix for 12860 - only notify if not stopping/cleaned.

lustre/mds/mds_lov.c

index 1a2b681..c16a977 100644 (file)
@@ -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 */