Whamcloud - gitweb
LU-18727 target: reference transaction early 12/58112/3
authorAlex Zhuravlev <bzzz@whamcloud.com>
Tue, 18 Feb 2025 09:14:08 +0000 (12:14 +0300)
committerOleg Drokin <green@whamcloud.com>
Fri, 28 Feb 2025 08:16:13 +0000 (08:16 +0000)
commit72792d8dbfd4d7f3227d94514e0fd96399535d20
tree52647f2c3dc4bd1732dabef85aab23e395e99bda
parenta8182d531750a2ae81192ece810d70b4da430d8c
LU-18727 target: reference transaction early

grab a reference to distrubuted transaction handle before putting on
the list, otherwize the concurrent commit thread can find it and
release, thus the original thread will be accessing just freed
structure.

Test-Parameters: testlist=replay-single,replay-dual
Test-Parameters: testlist=replay-single,replay-dual
Test-Parameters: testlist=replay-single,replay-dual
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I12546b1bce3b3f0fe3c74a99bb589bee39768754
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58112
Reviewed-by: Mikhail Pershin <mpershin@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
lustre/target/update_trans.c