Whamcloud - gitweb
LU-17062 lnet: Update lnet_peer_*_decref_locked usage 84/52184/6
authorShaun Tancheff <shaun.tancheff@hpe.com>
Sat, 16 Sep 2023 05:54:54 +0000 (00:54 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 25 Oct 2023 18:03:37 +0000 (18:03 +0000)
commit60cfceb8c59364f786b31ac36c2c245b9a1e495a
tree340bfd701f17dfd0087e4b57ae72e75189f4d7d0
parent461e3867ea11240c77ccd1bb71a3758506cf882e
LU-17062 lnet: Update lnet_peer_*_decref_locked usage

Move decref's to occur after last reference to prevent
use after free.

HPE-bug-id: LUS-11799
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I2382ece560039383f644b6aee73a9481d6bb5673
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52184
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/lib-move.c
lnet/lnet/peer.c
lnet/lnet/router.c