Commit a259f04a authored by Alice Ryhl's avatar Alice Ryhl
Browse files

FROMLIST: mm: rust: add mmput_async support



Adds an MmWithUserAsync type that uses mmput_async when dropped but is
otherwise identical to MmWithUser. This has to be done using a separate
type because the thing we are changing is the destructor.

Rust Binder needs this to avoid a certain deadlock. See commit
9a9ab0d9 ("binder: fix race between mmput() and do_exit()") for
details. It's also needed in the shrinker to avoid cleaning up the mm in
the shrinker's context.

Reviewed-by: default avatarAndreas Hindborg <a.hindborg@kernel.org>
Acked-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> (for mm bits)
Signed-off-by: default avatarAlice Ryhl <aliceryhl@google.com>

Bug: 370906207
Link: https://lore.kernel.org/all/20250115-vma-v12-5-375099ae017a@google.com/


Change-Id: Ie77da6df513990996ebbb7c5311bca9d37a4f150
Signed-off-by: default avatarAlice Ryhl <aliceryhl@google.com>
parent b2e4a698
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment