Whamcloud - gitweb
LU-13502 lnet: Ensure LNet pings and pushes are always tracked 51/38451/8
authorChris Horn <hornc@cray.com>
Fri, 1 May 2020 20:50:57 +0000 (15:50 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 7 Aug 2020 04:57:55 +0000 (04:57 +0000)
Add the appropriate option to the MD used for LNet pings and pushes
to ensure that these are always tracked via LNet's response tracking
mechanism, regardless of the value of lnet_response_tracking
variable.

Test-Parameters: trivial
HPE-bug-id: LUS-8827
Signed-off-by: Chris Horn <hornc@cray.com>
Change-Id: I13d8ee42ccbb00c85843f64314b1f953d679a0dc
Reviewed-on: https://review.whamcloud.com/38451
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/lib-move.c
lnet/lnet/peer.c

index 7baef67..8c297f9 100644 (file)
@@ -3609,7 +3609,7 @@ lnet_send_ping(lnet_nid_t dest_nid,
        md.length    = LNET_PING_INFO_SIZE(nnis);
        md.threshold = 2; /* GET/REPLY */
        md.max_size  = 0;
-       md.options   = LNET_MD_TRUNCATE;
+       md.options   = LNET_MD_TRUNCATE | LNET_MD_TRACK_RESPONSE;
        md.user_ptr  = user_data;
        md.handler   = handler;
 
index a86ffe8..20f78fb 100644 (file)
@@ -3120,7 +3120,7 @@ __must_hold(&lp->lp_lock)
        md.length    = LNET_PING_INFO_SIZE(pbuf->pb_nnis);
        md.threshold = 2; /* Put/Ack */
        md.max_size  = 0;
-       md.options   = 0;
+       md.options   = LNET_MD_TRACK_RESPONSE;
        md.handler   = the_lnet.ln_dc_handler;
        md.user_ptr  = lp;