]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix io_sqe_files_unregister() hangs
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 30 Dec 2020 21:34:15 +0000 (21:34 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 31 Dec 2020 02:35:53 +0000 (19:35 -0700)
commitff26b8748ea41c8f291b3b21c6c6d048146f59b0
tree8b00c895282e72bd42ee1d338365f79012f5cbc9
parent8ed138f92892b88e70b507e84eb600821f52c355
io_uring: fix io_sqe_files_unregister() hangs

io_sqe_files_unregister() uninterruptibly waits for enqueued ref nodes,
however requests keeping them may never complete, e.g. because of some
userspace dependency. Make sure it's interruptible otherwise it would
hang forever.

Cc: stable@vger.kernel.org # 5.6+
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c