]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring: enable lookup of links holding inflight files
authorJens Axboe <axboe@kernel.dk>
Wed, 12 Aug 2020 23:33:30 +0000 (17:33 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:24:20 +0000 (08:24 +0200)
commitda914d858adca1bbfd3b39f8dee44d76a568e43a
treed4975b33f22969207a9473cc4e44742969f09e9d
parent0566463676e0858897acd9555f905e4dcf29a738
io_uring: enable lookup of links holding inflight files

commit f254ac04c8744cf7bfed012717eac34eacc65dfb upstream.

When a process exits, we cancel whatever requests it has pending that
are referencing the file table. However, if a link is holding a
reference, then we cannot find it by simply looking at the inflight
list.

Enable checking of the poll and timeout list to find the link, and
cancel it appropriately.

Cc: stable@vger.kernel.org
Reported-by: Josef <josef.grieb@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/io_uring.c