From 8da8870b2a8f43b260262323a23c55ff4a284640 Mon Sep 17 00:00:00 2001 From: Dmitry Eremin Date: Thu, 11 Sep 2014 23:25:56 +0400 Subject: [PATCH] LU-991 lmv: remove dead code The member lmv_obd->server_timeout and function lmv_set_timeouts() are not used. Signed-off-by: Dmitry Eremin Change-Id: I61f8a59d72244ca41e76c277002bce3e2c850f0a Reviewed-on: http://review.whamcloud.com/11880 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: John L. Hammond Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- lustre/include/obd.h | 1 - lustre/lmv/lmv_obd.c | 24 ------------------------ 2 files changed, 25 deletions(-) diff --git a/lustre/include/obd.h b/lustre/include/obd.h index d28701d..1aaeff4 100644 --- a/lustre/include/obd.h +++ b/lustre/include/obd.h @@ -449,7 +449,6 @@ struct lmv_obd { 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; diff --git a/lustre/lmv/lmv_obd.c b/lustre/lmv/lmv_obd.c index 0d36904..d744c78 100644 --- a/lustre/lmv/lmv_obd.c +++ b/lustre/lmv/lmv_obd.c @@ -320,29 +320,6 @@ static int lmv_connect(const struct lu_env *env, 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) { @@ -652,7 +629,6 @@ int lmv_check_connect(struct obd_device *obd) 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); -- 1.8.3.1