Whamcloud - gitweb
LU-3751 ost: disable OUT_PORTAL request handler on OST. 23/7323/3
authorwang di <di.wang@intel.com>
Tue, 13 Aug 2013 07:00:23 +0000 (00:00 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 27 Aug 2013 01:08:33 +0000 (01:08 +0000)
Disable OUT_PORTAL request handler on OST for now, otherwise
it will confuse the connect requests from another MDT, when
MDTs and OSTs are all in the same node.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: Ifcbfabaa52537e1664086e335b07a6f179b17f2d
Reviewed-on: http://review.whamcloud.com/7323
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Hudson
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/ost/ost_handler.c

index 7880341..405d69c 100644 (file)
@@ -2787,6 +2787,7 @@ static int ost_setup(struct obd_device *obd, struct lustre_cfg* lcfg)
                GOTO(out_io, rc);
        }
 
                GOTO(out_io, rc);
        }
 
+#if 0
        /* Object update service */
        memset(&svc_conf, 0, sizeof(svc_conf));
        svc_conf = (typeof(svc_conf)) {
        /* Object update service */
        memset(&svc_conf, 0, sizeof(svc_conf));
        svc_conf = (typeof(svc_conf)) {
@@ -2831,12 +2832,10 @@ static int ost_setup(struct obd_device *obd, struct lustre_cfg* lcfg)
                ost->ost_out_service = NULL;
                GOTO(out_seq, rc);
        }
                ost->ost_out_service = NULL;
                GOTO(out_seq, rc);
        }
+#endif
        ping_evictor_start();
 
        RETURN(0);
        ping_evictor_start();
 
        RETURN(0);
-out_seq:
-       ptlrpc_unregister_service(ost->ost_seq_service);
-       ost->ost_seq_service = NULL;
 out_io:
        ptlrpc_unregister_service(ost->ost_io_service);
        ost->ost_io_service = NULL;
 out_io:
        ptlrpc_unregister_service(ost->ost_io_service);
        ost->ost_io_service = NULL;
@@ -2867,7 +2866,9 @@ static int ost_cleanup(struct obd_device *obd)
        ptlrpc_unregister_service(ost->ost_create_service);
        ptlrpc_unregister_service(ost->ost_io_service);
        ptlrpc_unregister_service(ost->ost_seq_service);
        ptlrpc_unregister_service(ost->ost_create_service);
        ptlrpc_unregister_service(ost->ost_io_service);
        ptlrpc_unregister_service(ost->ost_seq_service);
+#if 0
        ptlrpc_unregister_service(ost->ost_out_service);
        ptlrpc_unregister_service(ost->ost_out_service);
+#endif
        ost->ost_service = NULL;
        ost->ost_create_service = NULL;
        ost->ost_io_service = NULL;
        ost->ost_service = NULL;
        ost->ost_create_service = NULL;
        ost->ost_io_service = NULL;