]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit08d63093ca51ce697a9987510950b7d9fbf181a3
tree803574ca3a58ed50f18780e2488fb65099fc074f
parent771b297e8d8eaa887590b28fdbe6e7182d21f8da
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