+13
−9
Loading
When lo->lo_mutex is not held, direct access may read stale data. This patch uses READ_ONCE() to read lo->lo_state and data_race() to silence code checkers, and changes all assignments to use WRITE_ONCE(). Reviewed-by:Damien Le Moal <dlemoal@kernel.org> Signed-off-by:
Yongpeng Yang <yangyongpeng@xiaomi.com> Reviewed-by:
Christoph Hellwig <hch@lst.de> Signed-off-by:
Jens Axboe <axboe@kernel.dk>