io_uring: don't put nodes under spinlocks
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 4 Apr 2023 12:39:47 +0000 (13:39 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Apr 2023 15:30:39 +0000 (09:30 -0600)
commit2ad4c6d08018e4eec130c29992028dc356ab2181
tree18a7b8f7784ca8928d2f1189c34e6a36907822ca
parent8e15c0e71b8ae64fb7163532860f8d608165281f
io_uring: don't put nodes under spinlocks

io_req_put_rsrc() doesn't need any locking, so move it out of
a spinlock section in __io_req_complete_post() and adjust helpers.

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