From: John L. Hammond Date: Tue, 19 Jul 2016 14:24:38 +0000 (-0500) Subject: LU-8403 obd: remove OBD_NOTIFY_CONFIG X-Git-Tag: 2.9.54~12 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=2a433d0d62dc51f2d79e6179662b950188ad6a2b;p=fs%2Flustre-release.git LU-8403 obd: remove OBD_NOTIFY_CONFIG 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 Change-Id: If0d756755b38214574c71265b91bab6acfaf9311 Reviewed-on: https://review.whamcloud.com/21422 Reviewed-by: Andreas Dilger Tested-by: Jenkins Reviewed-by: James Simmons Tested-by: Maloo --- diff --git a/lustre/include/obd.h b/lustre/include/obd.h index 8cf5582..8da5942 100644 --- a/lustre/include/obd.h +++ b/lustre/include/obd.h @@ -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). diff --git a/lustre/obdclass/obd_mount_server.c b/lustre/obdclass/obd_mount_server.c index d6a7fe4..79c54cd 100644 --- a/lustre/obdclass/obd_mount_server.c +++ b/lustre/obdclass/obd_mount_server.c @@ -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) {