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 <wal...@google.com>
> Reviewed-by: Daniel Jordan <daniel.m.jor...@oracle.com>

Ugh... oh well.


Reviewed-by: Vlastimil Babka <vba...@suse.cz>

Reply via email to