mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-24 19:10:26 +00:00
io_uring: remove unconditional looping in local task_work handling
[ Upstream commit9fe3eaea4a] 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:c0e0d6ba25("io_uring: add IORING_SETUP_DEFER_TASKRUN") Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
8c0a0ae8af
commit
7b8fa7a0c2
1 changed files with 29 additions and 15 deletions
Loading…
Add table
Add a link
Reference in a new issue