From 39bd8d0aa62d8f113e9fe732f686bdccdfeedf5f Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Tue, 19 Jul 2016 09:16:15 -0500 Subject: [PATCH] LU-8403 obd: remove OBD_NOTIFY_CREATE None of the obd_notify() handlers listen for the OBD_NOTIFY_CREATE event, so remove it and its sole use in lov_add_target(). Signed-off-by: John L. Hammond Change-Id: I976b2215ba4b8fecf170a4efd3d7ec642183daaf Reviewed-on: https://review.whamcloud.com/21420 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Ben Evans Reviewed-by: Andreas Dilger --- lustre/include/obd.h | 2 -- lustre/lov/lov_obd.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/lustre/include/obd.h b/lustre/include/obd.h index b4ee379..e5315ac 100644 --- a/lustre/include/obd.h +++ b/lustre/include/obd.h @@ -526,8 +526,6 @@ static inline int is_lwp_on_ost(char *name) * Events signalled through obd_notify() upcall-chain. */ enum obd_notify_event { - /* target added */ - OBD_NOTIFY_CREATE, /* Device connect start */ OBD_NOTIFY_CONNECT, /* Device activated */ diff --git a/lustre/lov/lov_obd.c b/lustre/lov/lov_obd.c index 5a52072..3744334 100644 --- a/lustre/lov/lov_obd.c +++ b/lustre/lov/lov_obd.c @@ -617,8 +617,6 @@ static int lov_add_target(struct obd_device *obd, struct obd_uuid *uuidp, CDEBUG(D_CONFIG, "idx=%d ltd_gen=%d ld_tgt_count=%d\n", index, tgt->ltd_gen, lov->desc.ld_tgt_count); - rc = obd_notify(obd, tgt_obd, OBD_NOTIFY_CREATE, &index); - if (lov->lov_connects == 0) { /* lov_connect hasn't been called yet. We'll do the lov_connect_obd on this target when that fn first runs, -- 1.8.3.1