Whamcloud - gitweb
LU-17062 lnet: Update lnet_peer_*_decref_locked usage 04/54904/2
authorShaun Tancheff <shaun.tancheff@hpe.com>
Sat, 16 Sep 2023 05:54:54 +0000 (00:54 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 29 May 2024 04:59:36 +0000 (04:59 +0000)
commit2df49b78c86f9609e5a296bad02a1ecb600a3a7b
treec0a9ec0cd141a2863893a101c89eb022a05a34e6
parent692ce6056c6081c4ff79f3116da862ce8446c2b5
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-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54904
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lnet/lnet/lib-move.c
lnet/lnet/peer.c
lnet/lnet/router.c