]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: allow conditional reschedule for intensive iterators
authorJens Axboe <axboe@kernel.dk>
Fri, 24 Sep 2021 13:12:27 +0000 (07:12 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Sep 2021 16:24:34 +0000 (10:24 -0600)
commitf854a31e1c007adedaeea50e33050af16961f795
treeab8e7448a252e0f935e3c52f8985ea69478b2b7a
parent3a5719295ee5f2e9c42524987ad3ec023b99913a
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/00000000000064b6b405ccb41113@google.com/
Reported-by: syzbot+111d2a03f51f5ae73775@syzkaller.appspotmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c