]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: clean up io_poll_task_func()
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 9 Apr 2021 08:13:19 +0000 (09:13 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Apr 2021 01:30:40 +0000 (19:30 -0600)
commitbe7d88ec9fe309157ab0f44f75167992230ae9c6
treec7c863e295cf3bd202384f133e12746cab17de86
parenteb209a6ba7b87a8255bbf96adb6144b0261dbd85
io_uring: clean up io_poll_task_func()

io_poll_complete() always fills an event (even an overflowed one), so we
always should do io_cqring_ev_posted() afterwards. And that's what is
currently happening, because second EPOLLONESHOT check is always true,
it can't return !done for oneshots.

Remove those branching, it's much easier to read.

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