Re: [PATCH v5 01/10] mmap locking API: initial implementation as rwsem wrappers

From: Vlastimil Babka
Date: Mon May 18 2020 - 05:28:15 EST


On 4/22/20 2:14 AM, Michel Lespinasse wrote:
> This change wraps the existing mmap_sem related rwsem calls into a new
> mmap locking API. There are two justifications for the new API:
>
> - At first, it provides an easy hooking point to instrument mmap_sem
> locking latencies independently of any other rwsems.
>
> - In the future, it may be a starting point for replacing the rwsem
> implementation with a different one, such as range locks.
>
> Signed-off-by: Michel Lespinasse <walken@xxxxxxxxxx>
> Reviewed-by: Daniel Jordan <daniel.m.jordan@xxxxxxxxxx>
> Reviewed-by: Davidlohr Bueso <dbueso@xxxxxxx>

Reviewed-by: Vlastimil Babka <vbabka@xxxxxxx>