io_uring: drop file refs after task cancel
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 4 Jan 2021 20:43:29 +0000 (20:43 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 4 Jan 2021 22:22:50 +0000 (15:22 -0700)
commitde7f1d9e99d8b99e4e494ad8fcd91f0c4c5c9357
tree803574ca3a58ed50f18780e2488fb65099fc074f
parent6c503150ae33ee19036255cfda0998463613352c
io_uring: drop file refs after task cancel

io_uring fds marked O_CLOEXEC and we explicitly cancel all requests
before going through exec, so we don't want to leave task's file
references to not our anymore io_uring instances.

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