[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <28b5e071-70f2-4f46-86af-11879be0f2a4@kernel.dk>
Date: Tue, 2 Sep 2025 19:20:55 -0600
From: Jens Axboe <axboe@...nel.dk>
To: Caleb Sander Mateos <csander@...estorage.com>
Cc: io-uring@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] io_uring: remove WRITE_ONCE() in io_uring_create()
On 9/2/25 3:51 PM, Caleb Sander Mateos wrote:
> There's no need to use WRITE_ONCE() to set ctx->submitter_task in
> io_uring_create() since no other thread can access the io_ring_ctx until
> a file descriptor is associated with it. So use a normal assignment
> instead of WRITE_ONCE().
Would probably warrant a code comment to that effect, as just reading
the code would be slightly confusing after this.
--
Jens Axboe
Powered by blists - more mailing lists