]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: remove wait loop spurious wakeups
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 7 Oct 2019 23:18:42 +0000 (02:18 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 8 Oct 2019 03:16:24 +0000 (21:16 -0600)
commitf3466d508179f736e1895ca14696c3b3ad77a0a5
treeb7de652423b1ef3af835b1c538bbb3d17a2edb5b
parentf8d23fc46ba293c59892fb4ef9d6d7b1e75dcc63
io_uring: remove wait loop spurious wakeups

Any changes interesting to tasks waiting in io_cqring_wait() are
commited with io_cqring_ev_posted(). However, io_ring_drop_ctx_refs()
also tries to do that but with no reason, that means spurious wakeups
every io_free_req() and io_uring_enter().

Just use percpu_ref_put() instead.

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