OSDN Git Service

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)
commite3f721e6f6d5d916edf71e5f26ac0547a4b28e1e
treedca8b9a623be83718536a362a765ade09b013f6d
parentc2b6c6bc4e0d3452ac4e208c198f6062e0f1d9df
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