Whamcloud - gitweb
LU-7994 statahead: add smp_mb() to serialize ops 40/23040/3
authorLai Siyao <lai.siyao@intel.com>
Mon, 10 Oct 2016 08:44:12 +0000 (16:44 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 9 Mar 2017 06:11:56 +0000 (06:11 +0000)
commitc5c8d0623a60ee54bd11588a391b3dcd43c1abcf
tree7c4e87cbe94c838972cb0175d0b7a75031f5772f
parentf548d1a00eaf705607b0c1eac254c95e3905f5b2
LU-7994 statahead: add smp_mb() to serialize ops

In ll_deauthorize_statahead(), it set thread stop flag, and then
wake up thread, however wakeup is called inside spinlock in case
ll_statahead_info is released, then we need to call smp_mb() to
serialize setting and wakeup.

Signed-off-by: Lai Siyao <lai.siyao@intel.com>
Change-Id: I500bdf325aa0bd122b17bea448c3b9eec809a2a7
Reviewed-on: https://review.whamcloud.com/23040
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/statahead.c