io_uring: improve same wq polling
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 17 Aug 2021 19:28:11 +0000 (20:28 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 19:10:43 +0000 (13:10 -0600)
commit23a65db83b3f4549e5eee1fb5517c3365f627699
treef2419b80c593d29e9a564d1d2834b3a8f91b8c92
parent505657bc6c52b01304d8a7c79b2f98878e3d83db
io_uring: improve same wq polling

Move earlier the check for whether __io_queue_proc() tries to poll
already polled waitqueue, and do the same for the second poll entry, if
any. Shouldn't really matter, but at least it would have a more
predictable behaviour.

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