Whamcloud - gitweb
LU-17062 lnet: Update lnet_peer_*_decref_locked usage
authorShaun Tancheff <shaun.tancheff@hpe.com>
Sat, 16 Sep 2023 05:54:54 +0000 (00:54 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 27 Apr 2024 22:28:10 +0000 (22:28 +0000)
commite8a834333989bde0cf5426e8239c696265dfbaf6
tree4a80d273855ec176a44a433599409a232909f502
parent9ad2de3ce04c7154581e34e2642bbd365be5650b
LU-17062 lnet: Update lnet_peer_*_decref_locked usage

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

Lustre-change: https://review.whamcloud.com/52184
Lustre-commit: 60cfceb8c59364f786b31ac36c2c245b9a1e495a

HPE-bug-id: LUS-11799
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I2382ece560039383f644b6aee73a9481d6bb5673
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/54897
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lnet/lnet/lib-move.c
lnet/lnet/peer.c
lnet/lnet/router.c