OSDN Git Service

io_uring: don't pass tail into io_free_batch_list
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 24 Sep 2021 20:59:54 +0000 (21:59 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:53 +0000 (05:49 -0600)
commit1cce17aca621c38c657410dc278a48cda982dd2e
treef5b1eb6984dafdae01641d2bca50e516a837ee06
parentd4b7a5ef2b9c06def90d12db9b99bd12d75758fb
io_uring: don't pass tail into io_free_batch_list

io_free_batch_list() iterates all requests in the passed in list,
so we don't really need to know the tail but can keep iterating until
meet NULL. Just pass the first node into it and it will be enough.

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