Whamcloud - gitweb
LU-8403 obd: remove OBD_NOTIFY_CONFIG 22/21422/6
authorJohn L. Hammond <john.hammond@intel.com>
Tue, 19 Jul 2016 14:24:38 +0000 (09:24 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 9 Mar 2017 06:12:25 +0000 (06:12 +0000)
None of the OBD notify handlers listen for the OBD_NOTIFY_CONFIG event
so remove it and its sole use in server_start_targets().

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: If0d756755b38214574c71265b91bab6acfaf9311
Reviewed-on: https://review.whamcloud.com/21422
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/include/obd.h
lustre/obdclass/obd_mount_server.c

index 8cf5582..8da5942 100644 (file)
@@ -534,20 +534,11 @@ enum obd_notify_event {
         OBD_NOTIFY_INACTIVE,
         /* Connect data for import were changed */
         OBD_NOTIFY_OCD,
-        /* Configuration event */
-        OBD_NOTIFY_CONFIG,
         /* Administratively deactivate/activate event */
         OBD_NOTIFY_DEACTIVATE,
         OBD_NOTIFY_ACTIVATE
 };
 
-/* bit-mask flags for config events */
-enum config_flags {
-        CONFIG_LOG      = 0x1,  /* finished processing config log */
-        CONFIG_SYNC     = 0x2,  /* mdt synced 1 ost */
-        CONFIG_TARGET   = 0x4   /* one target is added */
-};
-
 /*
  * Data structure used to pass obd_notify()-event to non-obd listeners (llite
  * and liblustre being main examples).
index d6a7fe4..79c54cd 100644 (file)
@@ -1377,9 +1377,6 @@ static int server_start_targets(struct super_block *sb)
        /* calculate recovery timeout, do it after lustre_process_log */
        server_calc_timeout(lsi, obd);
 
-       /* log has been fully processed */
-       obd_notify(obd, NULL, OBD_NOTIFY_CONFIG, (void *)CONFIG_LOG);
-
        /* log has been fully processed, let clients connect */
        dev = obd->obd_lu_dev;
        if (dev && dev->ld_ops->ldo_prepare) {