io_uring: drop mm/files between task_work_submit
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 9 Feb 2021 04:47:50 +0000 (04:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Feb 2021 12:55:01 +0000 (13:55 +0100)
commit5592eae7846ca1279591624ecf89513dfb5840bb
tree48a6d088fb337885592ea344a44ec44d2678ea5c
parent88dbd085a51ec78c83dde79ad63bca8aa4272a9d
io_uring: drop mm/files between task_work_submit

[ Upstream commit aec18a57edad562d620f7d19016de1fc0cc2208c ]

Since SQPOLL task can be shared and so task_work entries can be a mix of
them, we need to drop mm and files before trying to issue next request.

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