Commit 8bab4c0
committed
io_uring: allow conditional reschedule for intensive iterators
If we have a lot of threads and rings, the tctx list can get quite big.
This is especially true if we keep creating new threads and rings.
Likewise for the provided buffers list. Be nice and insert a conditional
reschedule point while iterating the nodes for deletion.
Link: https://lore.kernel.org/io-uring/[email protected]/
Reported-by: [email protected]
Signed-off-by: Jens Axboe <[email protected]>1 parent 5b7aa38 commit 8bab4c0
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9173 | 9173 | | |
9174 | 9174 | | |
9175 | 9175 | | |
9176 | | - | |
| 9176 | + | |
9177 | 9177 | | |
| 9178 | + | |
| 9179 | + | |
9178 | 9180 | | |
9179 | 9181 | | |
9180 | 9182 | | |
| |||
9672 | 9674 | | |
9673 | 9675 | | |
9674 | 9676 | | |
9675 | | - | |
| 9677 | + | |
9676 | 9678 | | |
| 9679 | + | |
| 9680 | + | |
9677 | 9681 | | |
9678 | 9682 | | |
9679 | 9683 | | |
| |||
0 commit comments