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>
Thu, 15 Oct 2020 17:50:08 +0000 (11:50 -0600)
commit99cc3a1c73f5c43b03cb17e1f5ba863a7ba316d3
treedb88ad817d9fd611c3c3a39f5d8cce3845bc83fd
parent627be930336c4187a949f7d328f56eda34a84a13
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