]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: partially inline io_iopoll_getevents()
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 7 Jul 2020 13:36:20 +0000 (16:36 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 7 Jul 2020 18:00:03 +0000 (12:00 -0600)
commit5b4d658532590d27a62f01e2f8117f8a6fb35839
treebb9b60d2e7b383c765074977d7b17df657f5bb2d
parent1efea800c322047ac25b9d5e97d4f18410f65ce4
io_uring: partially inline io_iopoll_getevents()

io_iopoll_reap_events() doesn't care about returned valued of
io_iopoll_getevents() and does the same checks for list emptiness
and need_resched(). Just use io_do_iopoll().

io_sq_thread() doesn't check return value as well. It also passes min=0,
so there never be the second iteration inside io_poll_getevents().
Inline it there too.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c