OSDN Git Service

io_uring: clean iowq submit work cancellation
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 23 Oct 2021 11:13:57 +0000 (12:13 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Oct 2021 13:42:29 +0000 (07:42 -0600)
commitd01905db14eb6223dd1c375001f4daa26cb15c1f
treee08a48ee210fbbaf53fa5944e4e6018fb924274d
parent255657d237042fd51673aef6f22463f662f9933f
io_uring: clean iowq submit work cancellation

If we've got IO_WQ_WORK_CANCEL in io_wq_submit_work(), handle the error
on the same lines as the check instead of having a weird code flow. The
main loop doesn't change but goes one indention left.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/ff4a09cf41f7a22bbb294b6f1faea721e21fe615.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