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

From: Matthew Wilcox
Date: Fri Dec 13 2024 - 13:20:02 EST


On Fri, Dec 13, 2024 at 09:45:33AM -0800, Suren Baghdasaryan wrote:
> think the simplest way would be to move the definition of struct
> rcuwait into a separate header and include that header in mm_types.h.
> That, with some uninlining like you suggested, should do the trick.

I'd suggest struct rcuwait should live in types.h alongside list_head,
rcuref and so on.