Skip to content
Commit 10fef4be authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: account fixed file references correctly in batch



We can't assume that the whole batch has fixed files in it. If it's a
mix, or none at all, then we can end up doing a ref put that either
messes up accounting, or causes an oops if we have no fixed files at
all.

Also ensure we free requests properly between inflight accounted and
normal requests.

Fixes: 82c721577011 ("io_uring: extend batch freeing to cover more cases")
Reported-by: default avatarDmitrii Dolgov <9erthalion6@gmail.com>
Reported-by: default avatarPavel Begunkov <asml.silence@gmail.com>
Tested-by: default avatarDmitrii Dolgov <9erthalion6@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 354420f7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment