]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: simplify io_req_link_next()
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 21 Nov 2019 20:21:02 +0000 (23:21 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Nov 2019 02:56:11 +0000 (19:56 -0700)
commitd3c03562a51f333fbacb76d55a858c20d528f11f
tree6c21e94fb6a08a4d67b37e77ebcc5cd700fd5f5b
parent80044447d9ced737d63640e32f9e880cc15f0cdd
io_uring: simplify io_req_link_next()

"if (nxt)" is always true, as it was checked in the while's condition.
io_wq_current_is_worker() is unnecessary, as non-async callers don't
pass nxt, so io_queue_async_work() will be called for them anyway.

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