aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/io_uring/poll.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-01-31 10:50:08 -0700
committerJens Axboe <axboe@kernel.dk>2024-02-08 13:27:06 -0700
commit9fe3eaea4a3530ca34a8d8ff00b1848c528789ca (patch)
treed09be909889d4d87d147b24843f7393e7e5fb4d1 /io_uring/poll.c
parentio_uring: remove next io_kiocb fetch in task_work running (diff)
downloadwireguard-linux-9fe3eaea4a3530ca34a8d8ff00b1848c528789ca.tar.xz
wireguard-linux-9fe3eaea4a3530ca34a8d8ff00b1848c528789ca.zip
io_uring: remove unconditional looping in local task_work handling
If we have a ton of notifications coming in, we can be looping in here for a long time. This can be problematic for various reasons, mostly because we can starve userspace. If the application is waiting on N events, then only re-run if we need more events. Fixes: c0e0d6ba25f1 ("io_uring: add IORING_SETUP_DEFER_TASKRUN") Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/poll.c')
0 files changed, 0 insertions, 0 deletions