[PATCH v2 1/2] mmap locking API: add mmap_lock_is_contended()

Michel Lespinasse walken at google.com
Fri Aug 14 04:30:39 EDT 2020


On Wed, Aug 12, 2020 at 7:14 PM Chinwen Chang
<chinwen.chang at mediatek.com> wrote:
>
> Add new API to query if someone wants to acquire mmap_lock
> for write attempts.
>
> Using this instead of rwsem_is_contended makes it more tolerant
> of future changes to the lock type.
>
> Signed-off-by: Chinwen Chang <chinwen.chang at mediatek.com>

Acked-by: Michel Lespinasse <walken at google.com>



More information about the Linux-mediatek mailing list