]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring: remove WRITE_ONCE() in io_uring_create()
authorCaleb Sander Mateos <csander@purestorage.com>
Thu, 4 Sep 2025 16:12:22 +0000 (10:12 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Sep 2025 23:22:24 +0000 (17:22 -0600)
commitc2685729fa5463e5fc493244a2ba7e260217fc76
tree8de72fd3101265d8373f2448c5414e54d2d5ea1d
parent9f8608fce90fbcd2a98ceefad0bc762423927629
io_uring: remove WRITE_ONCE() in io_uring_create()

There's no need to use WRITE_ONCE() to set ctx->submitter_task in
io_uring_create() since no other task can access the io_ring_ctx until a
file descriptor is associated with it. So use a normal assignment
instead of WRITE_ONCE().

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Link: https://lore.kernel.org/r/20250904161223.2600435-1-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c