diff options
author | 2021-04-09 09:13:19 +0100 | |
---|---|---|
committer | 2021-04-11 19:30:40 -0600 | |
commit | f40b964a66ace54cda811d8ba96eccec210cd7ad (patch) | |
tree | c7c863e295cf3bd202384f133e12746cab17de86 /include/linux/io_uring.h | |
parent | io-wq: Fix io_wq_worker_affinity() (diff) | |
download | wireguard-linux-f40b964a66ace54cda811d8ba96eccec210cd7ad.tar.xz wireguard-linux-f40b964a66ace54cda811d8ba96eccec210cd7ad.zip |
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>
Diffstat (limited to 'include/linux/io_uring.h')
0 files changed, 0 insertions, 0 deletions