Whamcloud - gitweb
LU-6881 update: add lock to protect commit check 90/15690/3
authorwang di <di.wang@intel.com>
Tue, 21 Jul 2015 13:16:21 +0000 (06:16 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 13 Aug 2015 00:01:15 +0000 (00:01 +0000)
commit58c571070e72c6912aea47da5d90e7365d626d6b
tree2fb99a1f37c7044edcf25a0201a921f759c3cbb7
parentb9cbb29935faa388d36b16140c7ef76a47754bec
LU-6881 update: add lock to protect commit check

In sub_trans_commit_cb(), the commit check should
be protected by lock, otherwise in some racy
scenarios, all committed will never be true,
even though all sub transaction has been committed.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: I8f43ca8083753ab6eef4f2be56ef77bb8640bb79
Reviewed-on: http://review.whamcloud.com/15690
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Tested-by: Jenkins
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_update.h
lustre/target/update_trans.c