From 34d8b6bcd914fbd2d5d48d73ee14a74a002a8e4b Mon Sep 17 00:00:00 2001
From: nathan <nathan>
Date: Tue, 31 Jul 2007 15:54:20 +0000
Subject: [PATCH] b=13175 i=green i=adilger Fix for 12860 - only notify if not
 stopping/cleaned.

---
 lustre/mds/mds_lov.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lustre/mds/mds_lov.c b/lustre/mds/mds_lov.c
index 1a2b681eef..c16a9775f6 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 */
-- 
GitLab