staging: lustre: obd: reserve connection flag OBD_CONNECT_LOCK_AHEAD
authorFan Yong <fan.yong@intel.com>
Wed, 23 Nov 2016 23:01:18 +0000 (18:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Nov 2016 20:50:38 +0000 (21:50 +0100)
The connection flag OBD_CONNECT_LOCK_AHEAD will be used for the
following the patch: LU-6917 LDLM lock ahead
http://review.whamcloud.com/13564

Land the connection flags to upstream client earlier for reserving
the slot to avoid potential conflict with others.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7543
Reviewed-on: http://review.whamcloud.com/17645
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Patrick Farrell <paf@cray.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/lustre/lustre_idl.h
drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
drivers/staging/lustre/lustre/ptlrpc/wiretest.c

index 89956898d0c780743fbb632e4c15e5cd6811c964..6c1eb6bbef79bb0d579ba8e1767448ebf3718d95 100644 (file)
@@ -1190,6 +1190,7 @@ void lustre_swab_ptlrpc_body(struct ptlrpc_body *pb);
                                                       */
 #define OBD_CONNECT_DIR_STRIPE  0x400000000000000ULL/* striped DNE dir */
 #define OBD_CONNECT_SUBTREE     0x800000000000000ULL /* fileset mount */
+#define OBD_CONNECT_LOCK_AHEAD  0x1000000000000000ULL /* lock ahead */
 /** bulk matchbits is sent within ptlrpc_body */
 #define OBD_CONNECT_BULK_MBITS  0x2000000000000000ULL
 
index f78928f3a51f554c63b0d3d8e2348007b5972933..5e341e31877ae06ef804737fd67c0c538dc3df46 100644 (file)
@@ -103,6 +103,7 @@ static const char * const obd_connect_names[] = {
        "multi_mod_rpcs",
        "dir_stripe",
        "subtree",
+       "lock_ahead",
        "bulk_mbits",
        "unknown",
        NULL
index 5619f11570b7faf16f36bc30424d1288b0aad1c3..afa79d5e7a8935312012c75043c887ccafa5e652 100644 (file)
@@ -1107,6 +1107,8 @@ void lustre_assert_wire_constants(void)
                 OBD_CONNECT_DIR_STRIPE);
        LASSERTF(OBD_CONNECT_SUBTREE == 0x800000000000000ULL, "found 0x%.16llxULL\n",
                 OBD_CONNECT_SUBTREE);
+       LASSERTF(OBD_CONNECT_LOCK_AHEAD == 0x1000000000000000ULL, "found 0x%.16llxULL\n",
+                OBD_CONNECT_LOCK_AHEAD);
        LASSERTF(OBD_CKSUM_CRC32 == 0x00000001UL, "found 0x%.8xUL\n",
                 (unsigned)OBD_CKSUM_CRC32);
        LASSERTF(OBD_CKSUM_ADLER == 0x00000002UL, "found 0x%.8xUL\n",