On Mon, May 18, 2020 at 12:32:03PM +0200, Vlastimil Babka wrote: > On 4/22/20 2:14 AM, Michel Lespinasse wrote: > > Add API for nested write locks and convert the few call sites doing that. > > > > Signed-off-by: Michel Lespinasse <walken@xxxxxxxxxx> > > Reviewed-by: Daniel Jordan <daniel.m.jordan@xxxxxxxxxx> > > Reviewed-by: Vlastimil Babka <vbabka@xxxxxxx> > > Perhaps we could even move SINGLE_DEPTH_NESTING into the wrapper? It's unlikely > there will be a new user with a different subclass? I think I'll leave it in the API for now. I don't foresee new uses being added as long as we stick to coarse mmap locking, but if extending the api to support range locking it'd become more likely that we'd want to lock multiple ranges for mremap... -- Michel "Walken" Lespinasse A program is never fully debugged until the last user dies.