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)
commit4edf20f9990230e9b85e79954d5cd28fc93616e9
treed3f13f4513257150d880dccc7447fd4d550d739f
parent6a0af224c21309f24dbb1b79d0744b255d7156a0
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