Whamcloud - gitweb
LU-13454 lnet: Handle health stats for reply to optimized GET 37/38237/2
authorChris Horn <hornc@cray.com>
Tue, 14 Apr 2020 19:00:27 +0000 (14:00 -0500)
committerOleg Drokin <green@whamcloud.com>
Thu, 23 Apr 2020 16:49:06 +0000 (16:49 +0000)
commita4f8f2840f81a225cf09e33dce9cba2a9a8b6526
tree9a4da99b8802249a48fd235b8d1ce3ec24b02126
parent0716f5a9d98a4fa299b2cfc7cfee236313e3dbcc
LU-13454 lnet: Handle health stats for reply to optimized GET

The LNet messages used for replies to optimized GETs, created via
lnet_create_reply_msg(), are only ever committed for rx. As such,
their msg_txni and msg_txpeer fields are NULL. lnet_incr_hstats()
does not account for this situation, so when passed one of these
messages attempts to deref a NULL pointer.

HPE-bug-id: LUS-8730
Signed-off-by: Chris Horn <hornc@cray.com>
Change-Id: I36b7c46a2d439c5e62f17df64a4f9da8f01090aa
Reviewed-on: https://review.whamcloud.com/38237
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Amir Shehata <ashehata@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/lib-msg.c