kernel: return use_mm/unuse_mm functions
use_mm/unuse_mm allow to change mm of user threads.
In v5.8, they have been renamed to kthread_use_mm, kthread_unuse_mm and filled
with kthread-specific code.
The gVisor XEMU module uses use_mm/unuse_mm to change mm of user-threads.
BUG=b/183648601
TEST=presubmit
SOURCE=GVISOR(9ae345dc57898f9cc62b6b65c2881e64e1f819b3)
RELEASE_NOTE=None
Fixes: f5678e7f2ac3 ("kernel: better document the use_mm/unuse_mm API contract")
Signed-off-by: Andrei Vagin <avagin@google.com>
Change-Id: Ie3bcf33697d185ec8021254055b654bc1833c3b3
Reviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/17930
Reviewed-by: Bhasker Hariharan <bhaskerh@google.com>
Reviewed-by: Oleksandr Tymoshenko <ovt@google.com>
Tested-by: Oleksandr Tymoshenko <ovt@google.com>
(cherry picked from commit 9ae345dc57898f9cc62b6b65c2881e64e1f819b3)
Reviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/17174
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
2 files changed