]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: dig out COMP_LOCK from deep call chain
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 13 Oct 2020 08:43:59 +0000 (09:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 17 Oct 2020 15:25:43 +0000 (09:25 -0600)
commitb19a18607a8ea349e82c2aa87d1f0c49425d5b79
treed3f13f4513257150d880dccc7447fd4d550d739f
parentdbb851c26df3d86f38de2a9d2d2a9c3c7681f98a
io_uring: dig out COMP_LOCK from deep call chain

io_req_clean_work() checks REQ_F_COMP_LOCK to pass this two layers up.
Move the check up into __io_free_req(), so at least it doesn't looks so
ugly and would facilitate further changes.

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