Commit 4660dd9b authored by Dmitry Eremin's avatar Dmitry Eremin Committed by Greg Kroah-Hartman

staging: lustre: lmv: remove dead code

The member lmv_obd->server_timeout and function lmv_set_timeouts()
are not used.
Signed-off-by: default avatarDmitry Eremin <dmitry.eremin@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-991
Reviewed-on: http://review.whamcloud.com/11880Reviewed-by: default avatarJohn L. Hammond <john.hammond@intel.com>
Reviewed-by: default avatarJames Simmons <uja.ornl@gmail.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 29c877a5
......@@ -433,7 +433,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;
......
......@@ -302,30 +302,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];
tgt = lmv->tgts[i];
if (!tgt || !tgt->ltd_exp || !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)
{
......@@ -616,7 +592,6 @@ int lmv_check_connect(struct obd_device *obd)
goto out_disc;
}
lmv_set_timeouts(obd);
class_export_put(lmv->exp);
lmv->connected = 1;
easize = lmv_mds_md_size(lmv->desc.ld_tgt_count, LMV_MAGIC);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment