Whamcloud - gitweb
Branch HEAD
authorliangzhen <liangzhen>
Mon, 4 May 2009 04:51:16 +0000 (04:51 +0000)
committerliangzhen <liangzhen>
Mon, 4 May 2009 04:51:16 +0000 (04:51 +0000)
Enable obdecho connecting

b=18096
o=ericm
i=liang

lustre/ost/ost_handler.c

index d82ca41..c47a196 100644 (file)
@@ -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,