]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: split iopoll loop
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 24 Sep 2021 20:59:48 +0000 (21:59 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:53 +0000 (05:49 -0600)
commitc50abe370f42489b4c744d1a9d8c86f26037901c
treedca8b9a623be83718536a362a765ade09b013f6d
parent2f4287c2c1eaae94806b15df6295b0eeabfd4b72
io_uring: split iopoll loop

The main loop of io_do_iopoll() iterates and does ->iopoll() until it
meets a first completed request, then it continues from that position
and splices requests to pass them through io_iopoll_complete().

Split the loop in two for clearness, iopolling and reaping completed
requests from the list.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/a7f6fd27a94845e5dc925a47a4a9765a92e514fb.1632516769.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c