Re: [PATCH 3/4] mm: replace rw_semaphore with atomic_t in vma_lock

From: Suren Baghdasaryan
Date: Mon Nov 11 2024 - 19:59:17 EST


On Mon, Nov 11, 2024 at 4:07 PM Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> On Mon, 11 Nov 2024 12:55:05 -0800 Suren Baghdasaryan <surenb@xxxxxxxxxx> wrote:
>
> > include/linux/mm.h | 142 ++++++++++++++++++++++++++++++++++----
>
> There's soooo much inlining happening here. Perhaps we should have a
> "default to uninlined, unless a benefit is demonstrated" guideline?

Implementing this lock as a separate type as you suggested should help
with the amount of inlining here. I'll try to keep it sane once I
finalize that.