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

2020-08-14 Thread Michel Lespinasse
On Wed, Aug 12, 2020 at 7:14 PM Chinwen Chang 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 Acked-by: Michel

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

2020-08-13 Thread Steven Price
On 13/08/2020 03:13, Chinwen Chang 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 Reviewed-by: Steven Price ---

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

2020-08-12 Thread Chinwen Chang
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 --- include/linux/mmap_lock.h | 5 + 1 file changed, 5 insertions(+) diff --git