]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust_binder: use lock_vma_under_rcu() in use_page_slow()
authorAlice Ryhl <aliceryhl@google.com>
Wed, 18 Feb 2026 15:13:23 +0000 (15:13 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Feb 2026 05:34:14 +0000 (21:34 -0800)
commita0b9b0f1433c845bda708753db32befef78e0f1f
tree396a3f5b567934d78336da81b7c16fae532abb75
parent2e303f0febb65a434040774b793ba8356698802b
rust_binder: use lock_vma_under_rcu() in use_page_slow()

There's no reason to lock the whole mm when we are doing operations on
the vma if we can help it, so to reduce contention, use the
lock_vma_under_rcu() abstraction.

Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Jann Horn <jannh@google.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Link: https://patch.msgid.link/20260218-binder-vma-rcu-v1-1-8bd45b2b1183@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder/page_range.rs