Re: [PATCH 1/3] mm/vma: fix incorrectly disallowed anonymous VMA merges
From: Lorenzo Stoakes
Date: Mon Apr 07 2025 - 12:50:59 EST
On Mon, Apr 07, 2025 at 11:24:19AM +0100, Lorenzo Stoakes wrote:
> Since you seem dead-set on this issue, I think the best solution here is
> just for me to update the comment a little. I'll send a fix-patch.
Actually, re-reading the comment I added:
* If, at any point, the VMA had unCoW'd mappings from parents, it will maintain
* more than one anon_vma_chain connecting it to more than one anon_vma. A merge
* would mean a wider range of folios sharing the root anon_vma lock, and thus
* potential lock contention, we do not wish to encourage merging such that this
* scales to a problem.
'If _at any point_' - we already clarify the situation.
So I don't think any change is required here, sorry.