summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYongpeng Yang <yangyongpeng@xiaomi.com>2025-12-15 18:21:06 +0300
committerJens Axboe <axboe@kernel.dk>2025-12-15 19:32:42 +0300
commit4b2b03151e2e3c11a3caae6e0223964dc771b003 (patch)
treefa3d10541edc934d22884743bd4008ed31a1b41b /include
parent54891a96b7a90d77c32bd0a7d6c9987e5479a314 (diff)
downloadlinux-4b2b03151e2e3c11a3caae6e0223964dc771b003.tar.xz
zloop: use READ_ONCE() to read lo->lo_state in queue_rq path
In the queue_rq path, zlo->state is accessed without locking, and direct access may read stale data. This patch uses READ_ONCE() to read zlo->state and data_race() to silence code checkers, and changes all assignments to use WRITE_ONCE(). Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Yongpeng Yang <yangyongpeng@xiaomi.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions