io_uring: serialize ctx->rings->sq_flags with atomic_or/and
authorJens Axboe <axboe@kernel.dk>
Thu, 21 Apr 2022 23:37:21 +0000 (17:37 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 Apr 2022 23:22:45 +0000 (17:22 -0600)
commit890a4f9a2d7df2a98d43e47467d167b8236b9d70
treed9aa83e8b9751fcbda1ece2d88e3a1aa9dfb8be4
parent64bc24ac03095d76b1678ef6d206a35e8581c376
io_uring: serialize ctx->rings->sq_flags with atomic_or/and

Rather than require ctx->completion_lock for ensuring that we don't
clobber the flags, use the atomic bitop helpers instead. This removes
the need to grab the completion_lock, in preparation for needing to set
or clear sq_flags when we don't know the status of this lock.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c