Whamcloud - gitweb
LU-2467 protocol: Add OBD_CONNECT_PINGLESS
authorLi Wei <wei.g.li@intel.com>
Thu, 31 Jan 2013 09:48:23 +0000 (17:48 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 4 Feb 2013 21:32:45 +0000 (16:32 -0500)
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 <wei.g.li@intel.com>
Change-Id: I7575082244a84f2e633a1936fcf894da3c6ee7dd
Reviewed-on: http://review.whamcloud.com/5229
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/include/lustre/lustre_idl.h
lustre/obdclass/lprocfs_status.c

index 8283931..09594bc 100644 (file)
@@ -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
index 026076b..e1227d9 100644 (file)
@@ -974,6 +974,7 @@ static const char *obd_connect_names[] = {
        "nanoseconds_times",
        "lightweight_conn",
        "short_io",
+       "pingless",
        "unknown",
         NULL
 };