summaryrefslogtreecommitdiff
path: root/include/linux/dim.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-02-02 20:20:05 +0300
committerJens Axboe <axboe@kernel.dk>2024-02-08 23:27:06 +0300
commitaf5d68f8892f8ee8f137648b79ceb2abc153a19b (patch)
treed76f98bfd630ee568e19f16aa2646de2b64dc1df /include/linux/dim.h
parent2708af1adc11700c6c3ce4109e3b133079a36a78 (diff)
downloadlinux-af5d68f8892f8ee8f137648b79ceb2abc153a19b.tar.xz
io_uring/sqpoll: manage task_work privately
Decouple from task_work running, and cap the number of entries we process at the time. If we exceed that number, push remaining entries to a retry list that we'll process first next time. We cap the number of entries to process at 8, which is fairly random. We just want to get enough per-ctx batching here, while not processing endlessly. Since we manually run PF_IO_WORKER related task_work anyway as the task never exits to userspace, with this we no longer need to add an actual task_work item to the per-process list. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/dim.h')
0 files changed, 0 insertions, 0 deletions