diff options
| author | 2026-08-03 21:34:00 +0800 | |
|---|---|---|
| committer | 2026-08-03 20:00:09 -0600 | |
| commit | 3be7ad35f10e8e19f618f67ddca0bc0e247f6505 (patch) | |
| tree | 346e2ff9596083811cbc8026307000cab30c9650 /scripts/Makefile.thinlto | |
| parent | block: enable RWF_DONTCACHE for block devices (diff) | |
block/blk-cgroup-rwstat: use data_race() for online test
blkg_rwstat_recursive_sum() reads pos_blkg->online without the queue
lock that its doc comment requires, since blkcg_print_blkgs() stopped
holding it in 56cc24f59c14. Concurrent blkg_create/destroy flips
->online, tripping KCSAN. The race is harmless (RCU-protected, stale
online only causes minor stat noise). Use data_race() to annotate
the intentional lockless read.
Also update the stale doc comment that still requires the queue lock.
Reviewed-by: Yu Kuai <yukuai@fygo.io>
Signed-off-by: Tao Cui <cuitao@kylinos.cn>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://patch.msgid.link/20260803133400.137906-1-cui.tao@linux.dev
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
