Re: [PATCH] mm: Always sanity check anon_vma first for per-vma locks

From: Matthew Wilcox
Date: Thu Apr 11 2024 - 14:14:42 EST


On Thu, Apr 11, 2024 at 11:34:44AM -0400, Peter Xu wrote:
> If the answer is yes, I'd say please provide some document patch to
> support such behavior, you can stop my patch from getting merged now,
> but it's never clear whether someone else will see this and post it
> again. If it wasn't obviously to Suren who introduced per-vma lock [1],
> then I won't be surprised it's unknown to most developers on the list.

Anyone touching this path should have a good idea about what is and is
not the common case. Your confidence greatly exceeded your ability
here. I will not be submitting such a patch.