From e79f7db06c418bbcfe936e2bc1062e105e0533e9 Mon Sep 17 00:00:00 2001 From: liangzhen Date: Mon, 4 May 2009 04:51:16 +0000 Subject: [PATCH] Branch HEAD Enable obdecho connecting b=18096 o=ericm i=liang --- lustre/ost/ost_handler.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lustre/ost/ost_handler.c b/lustre/ost/ost_handler.c index d82ca41..c47a196 100644 --- a/lustre/ost/ost_handler.c +++ b/lustre/ost/ost_handler.c @@ -1461,6 +1461,12 @@ static int ost_connect_check_sptlrpc(struct ptlrpc_request *req) struct sptlrpc_flavor flvr; int rc = 0; + if (unlikely(strcmp(exp->exp_obd->obd_type->typ_name, + LUSTRE_ECHO_NAME) == 0)) { + exp->exp_flvr.sf_rpc = SPTLRPC_FLVR_ANY; + return 0; + } + if (exp->exp_flvr.sf_rpc == SPTLRPC_FLVR_INVALID) { read_lock(&filter->fo_sptlrpc_lock); sptlrpc_target_choose_flavor(&filter->fo_sptlrpc_rset, -- 1.8.3.1