Whamcloud - gitweb
LU-11301 target: add lock in sub_trans_stop_cb() 69/33169/2
authorLai Siyao <lai.siyao@intel.com>
Mon, 27 Aug 2018 20:55:56 +0000 (04:55 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 21 Sep 2018 03:31:04 +0000 (03:31 +0000)
commit9e313b46d1916f69d2e96b14540c3db88d105265
tree3384a2e72fa5f2af3d7da98ceb215b9a28dc6bcd
parentd0f0c1ce2aea32f472c3650dd9f7d5ed7ccc840d
LU-11301 target: add lock in sub_trans_stop_cb()

sub_trans st_committed and st_stopped flags take different bit of
the same memory address, so both of them should be set with lock,
but sub_trans_stop_cb() doesn't, which may cause it overriden.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ic3d7d7281b3cf9bd20702be944e14f35200318f1
Reviewed-on: https://review.whamcloud.com/33169
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/target/update_trans.c