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)
committerJohann Lombardi <johann.lombardi@intel.com>
Tue, 5 Feb 2013 13:55:22 +0000 (08:55 -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.

Change-Id: Id19f979650ffdcb117feb3c28fe7755add1013c6
Signed-off-by: Li Wei <wei.g.li@intel.com>
Reviewed-on: http://review.whamcloud.com/5231
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
lustre/include/lustre/lustre_idl.h
lustre/obdclass/lprocfs_status.c

index 0dc8a53..bb193b4 100644 (file)
@@ -378,6 +378,7 @@ extern void lustre_swab_ptlrpc_body(struct ptlrpc_body *pb, int msgsize);
 #define OBD_CONNECT_LVB_TYPE     0x400000000000ULL /* variable type of LVB */
 #define OBD_CONNECT_NANOSEC_TIME 0x800000000000ULL /* nanosecond timestamps */
 #define OBD_CONNECT_LIGHTWEIGHT 0x1000000000000ULL /* lightweight connection */
+#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 51748b9..5e46e98 100644 (file)
@@ -765,6 +765,8 @@ static const char *obd_connect_names[] = {
         "lvb_type",
        "nanoseconds_times",
         "lightweight_conn",
+        "unknown", /* "shortio" */
+        "pingless",
        "unknown",
         NULL
 };