+4
−4
Loading
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>