io_uring: don't raw spin unlock to match cq_lock
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 30 Nov 2022 15:21:56 +0000 (15:21 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Nov 2022 17:28:49 +0000 (10:28 -0700)
commit618d653a345a477aaae307a0455900eb8789e952
tree33a00d4fbf44e46150be84f68b2792cf897c473b
parent443e57550670234f1bd34983b3c577edcf2eeef5
io_uring: don't raw spin unlock to match cq_lock

There is one newly added place when we lock ring with io_cq_lock() but
unlocking is hand coded calling spin_unlock directly. It's ugly and
troublesome in the long run. Make it consistent with the other completion
locking.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/4ca4f0564492b90214a190cd5b2a6c76522de138.1669821213.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
io_uring/io_uring.h