]> git.baikalelectronics.ru Git - kernel.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)
committerJens Axboe <axboe@kernel.dk>
Wed, 12 Aug 2020 23:33:30 +0000 (17:33 -0600)
commit10d7a30fd178fac5e81e2295abadb544e8e811bd
tree5c0464925bbdd244c195aef3981b1c9fff11702a
parent95b22bcfc7bb8fd1af6f36eefe8fabee8f148d83
io_uring: enable lookup of links holding inflight files

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>
fs/io_uring.c