staging: lustre: obd: remove OBD_NOTIFY_CREATE
authorJohn L. Hammond <john.hammond@intel.com>
Sun, 29 Jan 2017 00:05:11 +0000 (19:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2017 12:01:38 +0000 (13:01 +0100)
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 <john.hammond@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8403
Reviewed-on: https://review.whamcloud.com/21420
Reviewed-by: Ben Evans <bevans@cray.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/obd.h
drivers/staging/lustre/lustre/lov/lov_obd.c

index ab47078eba8178f81dd5c8f22600fddd7c9a09b4..4ce85064f9d0767af24bda848d1b846d5c5bfbf8 100644 (file)
@@ -475,8 +475,6 @@ struct niobuf_local {
  * Events signalled through obd_notify() upcall-chain.
  */
 enum obd_notify_event {
-       /* target added */
-       OBD_NOTIFY_CREATE,
        /* Device connect start */
        OBD_NOTIFY_CONNECT,
        /* Device activated */
index 63b064523c6a0ae22a30026c94ea84a162a73a6a..b3161fb6d4b5052718dadd57a05debded3c9b070 100644 (file)
@@ -592,8 +592,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,