1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
8 #include <linux/lustre_net.h>
10 #define MGR_STOPPING 1
15 #define MGR_WORKING 32
18 #define LUSTRE_HA_NAME "ptlrpc"
20 #define CONNMGR_CONNECT 1
22 extern struct recovd_obd *ptlrpc_connmgr;
24 struct connmgr_thread {
25 struct recovd_obd *mgr;
35 int connmgr_connect(struct recovd_obd *mgr, struct ptlrpc_connection *conn);
36 int connmgr_handle(struct obd_device *dev, struct ptlrpc_service *svc,
37 struct ptlrpc_request *req);
38 void connmgr_cli_fail(struct ptlrpc_client *cli);
39 void connmgr_cli_manage(struct recovd_obd *mgr, struct ptlrpc_client *cli);
40 int recovd_setup(struct recovd_obd *mgr);
41 int recovd_cleanup(struct recovd_obd *mgr);