]> www.infradead.org Git - users/hch/block.git/commit
io_uring/io-wq: make io_wq_work flags atomic
authorJens Axboe <axboe@r7625.kernel.dk>
Thu, 13 Jun 2024 19:28:27 +0000 (19:28 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 16 Jun 2024 20:54:55 +0000 (14:54 -0600)
commit3474d1b93f897ab33ce160e759afd47d5f412de4
treeb9a3cfb1fc551cb18c6082431c99ca0256744685
parentf2a93294edce87c909d61e18b506404127394891
io_uring/io-wq: make io_wq_work flags atomic

The work flags can be set/accessed from different tasks, both the
originator of the request, and the io-wq workers. While modifications
aren't concurrent, it still makes KMSAN unhappy. There's no real
downside to just making the flag reading/manipulation use proper
atomics here.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/io_uring_types.h
io_uring/io-wq.c
io_uring/io-wq.h
io_uring/io_uring.c