Re: [PATCH v5 07/10] mmap locking API: add mmap_read_trylock_non_owner()
From: Vlastimil Babka
Date: Mon May 18 2020 - 06:42:55 EST
On 4/22/20 2:14 AM, Michel Lespinasse wrote:
> Add a couple APIs used by kernel/bpf/stackmap.c only:
> - mmap_read_trylock_non_owner()
> - mmap_read_unlock_non_owner() (may be called from a work queue).
>
> It's still not ideal that bpf/stackmap subverts the lock ownership
> in this way. Thanks to Peter Zijlstra for suggesting this API as the
> least-ugly way of addressing this in the short term.
>
> Signed-off-by: Michel Lespinasse <walken@xxxxxxxxxx>
> Reviewed-by: Daniel Jordan <daniel.m.jordan@xxxxxxxxxx>
Ugh... oh well.
Reviewed-by: Vlastimil Babka <vbabka@xxxxxxx>