io_uring: clean io_wq_submit_work()'s main loop
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 23 Oct 2021 11:13:56 +0000 (12:13 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Oct 2021 13:42:20 +0000 (07:42 -0600)
commit255657d237042fd51673aef6f22463f662f9933f
treec78c583d3765c95b1d9d3b9bbb32c9b89ffa3c23
parentc907e52c72dee710f3bf7c751822df8371924a84
io_uring: clean io_wq_submit_work()'s main loop

Do a bit of cleaning for the main loop of io_wq_submit_work(). Get rid
of switch, just replace it with a single if as we're retrying in both
other cases. Kill issue_sqe label, Get rid of needs_poll nesting and
disambiguate a bit the comment.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/ed12ce0c64e051f9a6b8a37a24f8ea554d299c29.1634987320.git.asml.silence@gmail.com
Reviewed-by: Hao Xu <haoxu@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c