From 3d6c0555d3b49f05cbff8667b97a12b77650a802 Mon Sep 17 00:00:00 2001 From: Li Wei Date: Thu, 31 Jan 2013 17:48:23 +0800 Subject: [PATCH] LU-2467 protocol: Add OBD_CONNECT_PINGLESS Reserve a bit for OBD_CONNECT_PINGLESS, which indicates a client is capable of suppressing keep-alive OBD_PINGs. If granted by a server, it means the server does not require (but still allows) pings. Signed-off-by: Li Wei Change-Id: I7575082244a84f2e633a1936fcf894da3c6ee7dd Reviewed-on: http://review.whamcloud.com/5229 Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin Tested-by: Hudson Tested-by: Maloo --- lustre/include/lustre/lustre_idl.h | 1 + lustre/obdclass/lprocfs_status.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lustre/include/lustre/lustre_idl.h b/lustre/include/lustre/lustre_idl.h index 8283931..09594bc 100644 --- a/lustre/include/lustre/lustre_idl.h +++ b/lustre/include/lustre/lustre_idl.h @@ -1179,6 +1179,7 @@ extern void lustre_swab_ptlrpc_body(struct ptlrpc_body *pb); #define OBD_CONNECT_NANOSEC_TIME 0x800000000000ULL /* nanosecond timestamps */ #define OBD_CONNECT_LIGHTWEIGHT 0x1000000000000ULL/* lightweight connection */ #define OBD_CONNECT_SHORTIO 0x2000000000000ULL/* short io */ +#define OBD_CONNECT_PINGLESS 0x4000000000000ULL/* pings not required */ /* XXX README XXX: * Please DO NOT add flag values here before first ensuring that this same * flag value is not in use on some other branch. Please clear any such diff --git a/lustre/obdclass/lprocfs_status.c b/lustre/obdclass/lprocfs_status.c index 026076b..e1227d9 100644 --- a/lustre/obdclass/lprocfs_status.c +++ b/lustre/obdclass/lprocfs_status.c @@ -974,6 +974,7 @@ static const char *obd_connect_names[] = { "nanoseconds_times", "lightweight_conn", "short_io", + "pingless", "unknown", NULL }; -- 1.8.3.1