io_uring: fix overflowed cancel w/ linked ->files
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 4 Nov 2020 13:39:31 +0000 (13:39 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 4 Nov 2020 17:22:57 +0000 (10:22 -0700)
commit99b328084f6a98bcee9fcd423c82ccfd52115da5
tree645092070dc0fcfc533c7a13fd5af4b2b3de234b
parentcb8a8ae310741d743fd02982307797f6a126f614
io_uring: fix overflowed cancel w/ linked ->files

Current io_match_files() check in io_cqring_overflow_flush() is useless
because requests drop ->files before going to the overflow list, however
linked to it request do not, and we don't check them.

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