Thread (91 messages) 91 messages, 9 authors, 2022-09-29

Re: [RFC PATCH RESEND 03/28] mm: introduce __find_vma to be used without mmap_lock protection

From: Suren Baghdasaryan <surenb@google.com>
Date: 2022-09-01 23:18:43
Also in: linux-arm-kernel, linux-mm, lkml

On Thu, Sep 1, 2022 at 1:22 PM Kent Overstreet
[off-list ref] wrote:
On Thu, Sep 01, 2022 at 10:34:51AM -0700, Suren Baghdasaryan wrote:
quoted
Add __find_vma function to be used for VMA lookup under rcu protection.
So it was news to me that the rb tree code can be used for lockless lookups -
not having looked at lib/rbtree.c in over 10 years :) - I still think it should
be mentioned in the commit message that that's what you're doing and why it's
safe, because it's not exactly common knowledge and lockless stuff deserves
extra scrutiny.

Probably worth a comment, too.
Ack.
Reviewed-by: Kent Overstreet <kent.overstreet@linux.dev>
Thanks!
--
To unsubscribe from this group and stop receiving emails from it, send an email to kernel-team+unsubscribe@android.com.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help