From 08fcd99383695361919656a9461fa3af1a038b95 Mon Sep 17 00:00:00 2001 From: shaver Date: Mon, 30 Jun 2003 20:11:30 +0000 Subject: [PATCH] b=957: add pinger for recoverable clients, in order to promptly detect server failure and join recovery. Currently DISABLED (#ifdef ENABLE_PINGER) pending some discussion about deployment. Also: use the --config (or file.xml) instead of 'none' in the mount line, so that mounted filesystems have a little more context. --- lustre/ptlrpc/ptlrpc_internal.h | 5 +++++ lustre/ptlrpc/ptlrpc_module.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/lustre/ptlrpc/ptlrpc_internal.h b/lustre/ptlrpc/ptlrpc_internal.h index 575ed07..a81868a 100644 --- a/lustre/ptlrpc/ptlrpc_internal.h +++ b/lustre/ptlrpc/ptlrpc_internal.h @@ -28,6 +28,7 @@ struct ldlm_namespace; struct obd_import; struct ldlm_res_id; +struct ptlrpc_request_set; /* ldlm hooks that we need, managed via inter_module_{get,put} */ extern int (*ptlrpc_ldlm_namespace_cleanup)(struct ldlm_namespace *, int); @@ -90,4 +91,8 @@ enum { PTLRPC_LAST_CNTR }; +int ptlrpc_expire_one_request(struct ptlrpc_request *req); +int ptlrpc_check_set(struct ptlrpc_request_set *set); + +void ptlrpc_pinger_sending_on_import(struct obd_import *imp); #endif /* PTLRPC_INTERNAL_H */ diff --git a/lustre/ptlrpc/ptlrpc_module.c b/lustre/ptlrpc/ptlrpc_module.c index 01ba349..57f3653 100644 --- a/lustre/ptlrpc/ptlrpc_module.c +++ b/lustre/ptlrpc/ptlrpc_module.c @@ -227,6 +227,11 @@ EXPORT_SYMBOL(ptlrpc_recover_import); EXPORT_SYMBOL(client_obd_setup); EXPORT_SYMBOL(client_obd_cleanup); +/* pinger.c */ +EXPORT_SYMBOL(ptlrpc_pinger_add_import); +EXPORT_SYMBOL(ptlrpc_pinger_del_import); +EXPORT_SYMBOL(ptlrpc_pinger_sending_on_import); + #ifdef __KERNEL__ MODULE_AUTHOR("Cluster File Systems, Inc. "); MODULE_DESCRIPTION("Lustre Request Processor"); -- 1.8.3.1