Whamcloud - gitweb
LU-15660 statahead: statahead thread doesn't stop 00/52300/2
authorYang Sheng <ys@whamcloud.com>
Fri, 17 Jun 2022 12:30:34 +0000 (20:30 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 19 Oct 2023 13:51:03 +0000 (13:51 +0000)
commitf7438d13b2aadbdf8e90e5b0b7732eeb20f3d475
treef54bb31aca731980735615ad0b2769d56978d944
parentcfc219ced11adf837e3bd1e356217f33cbe68317
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.

Lustre-change: https://review.whamcloud.com/47673
Lustre-commit: b977caa2dc7dddcec9e20d393ee79dfa9fe31c0d

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