io_uring: don't put a poll req under spinlock
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 13 Oct 2020 08:43:58 +0000 (09:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 15 Oct 2020 17:50:08 +0000 (11:50 -0600)
commit627be930336c4187a949f7d328f56eda34a84a13
tree6b2ea5da40661fa514ee7608bb74c93da5bd92e6
parent3431069b73e26555f68648bafc917e5cdef3c695
io_uring: don't put a poll req under spinlock

Move io_put_req() in io_poll_task_handler() from under spinlock. This
eliminates the need to use REQ_F_COMP_LOCKED, at the expense of
potentially having to grab the lock again. That's still a better trade
off than relying on the locked flag.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c