Whamcloud - gitweb
LU-15660 statahead: statahead thread doesn't stop 73/47673/12
authorYang Sheng <ys@whamcloud.com>
Fri, 17 Jun 2022 12:30:34 +0000 (20:30 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 4 Apr 2023 14:33:58 +0000 (14:33 +0000)
commitb977caa2dc7dddcec9e20d393ee79dfa9fe31c0d
tree589a7e0a8e3fce5d52fb3c38f933f9f76115314e
parentfc84caa81b7fb9d27e82229d39f046e83b5ebb7e
LU-15660 statahead: statahead thread doesn't stop

Add a barrier to ensure sai_task changing can be seen
when access it without locking. Else the statahead
thread could sleep forever since wake_up was lost.

Signed-off-by: Yang Sheng <ys@whamcloud.com>
Change-Id: I211e99f1bdddaaaf028a205658f603fda034d389
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/47673
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/statahead.c