Whamcloud - gitweb
LU-991 lmv: remove dead code 80/11880/3
authorDmitry Eremin <dmitry.eremin@intel.com>
Thu, 11 Sep 2014 19:25:56 +0000 (23:25 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 6 Oct 2014 00:50:59 +0000 (00:50 +0000)
The member lmv_obd->server_timeout and function lmv_set_timeouts()
are not used.

Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Change-Id: I61f8a59d72244ca41e76c277002bce3e2c850f0a
Reviewed-on: http://review.whamcloud.com/11880
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/obd.h
lustre/lmv/lmv_obd.c

index d28701d..1aaeff4 100644 (file)
@@ -449,7 +449,6 @@ struct lmv_obd {
        int                     max_def_easize;
        int                     max_cookiesize;
        int                     max_def_cookiesize;
        int                     max_def_easize;
        int                     max_cookiesize;
        int                     max_def_cookiesize;
-       int                     server_timeout;
 
        __u32                   tgts_size; /* size of tgts array */
        struct lmv_tgt_desc     **tgts;
 
        __u32                   tgts_size; /* size of tgts array */
        struct lmv_tgt_desc     **tgts;
index 0d36904..d744c78 100644 (file)
@@ -320,29 +320,6 @@ static int lmv_connect(const struct lu_env *env,
        RETURN(rc);
 }
 
        RETURN(rc);
 }
 
-static void lmv_set_timeouts(struct obd_device *obd)
-{
-       struct lmv_obd          *lmv;
-       __u32                    i;
-
-        lmv = &obd->u.lmv;
-        if (lmv->server_timeout == 0)
-                return;
-
-        if (lmv->connected == 0)
-                return;
-
-       for (i = 0; i < lmv->desc.ld_tgt_count; i++) {
-               struct lmv_tgt_desc *tgt = lmv->tgts[i];
-
-               if (tgt == NULL || tgt->ltd_exp == NULL || !tgt->ltd_active)
-                       continue;
-
-               obd_set_info_async(NULL, tgt->ltd_exp, sizeof(KEY_INTERMDS),
-                                  KEY_INTERMDS, 0, NULL, NULL);
-       }
-}
-
 static int lmv_init_ea_size(struct obd_export *exp, int easize,
                            int def_easize, int cookiesize, int def_cookiesize)
 {
 static int lmv_init_ea_size(struct obd_export *exp, int easize,
                            int def_easize, int cookiesize, int def_cookiesize)
 {
@@ -652,7 +629,6 @@ int lmv_check_connect(struct obd_device *obd)
                        GOTO(out_disc, rc);
        }
 
                        GOTO(out_disc, rc);
        }
 
-       lmv_set_timeouts(obd);
        class_export_put(lmv->exp);
        lmv->connected = 1;
        easize = lmv_mds_md_size(lmv->desc.ld_tgt_count, LMV_MAGIC);
        class_export_put(lmv->exp);
        lmv->connected = 1;
        easize = lmv_mds_md_size(lmv->desc.ld_tgt_count, LMV_MAGIC);