# Re: \[PATCH v2 1/2\] mmap locking API: add mmap\_lock\_is\_contended()

- From: Michel Lespinasse \<hidden\>
- Date: 2020-08-14 08:31:02 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2020/08/186582
- Thread: https://ratatoskr.run/linux-arm-kernel/2020/08/186468/t.md

```text
On Wed, Aug 12, 2020 at 7:14 PM Chinwen Chang
[ref] 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 <redacted>

Acked-by: Michel Lespinasse <redacted>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
