On Thu, Oct 17, 2013 at 05:50:37PM -0700, Davidlohr Bueso wrote: > All mlock related syscalls prepare lock limits, lengths and > start parameters with the mmap_sem held. Move this logic > outside of the critical region. For the case of mlock, continue > incrementing the amount already locked by mm->locked_vm with > the rwsem taken. > > Signed-off-by: Davidlohr Bueso <davidlohr@xxxxxx> > Cc: Michel Lespinasse <walken@xxxxxxxxxx> > Cc: Vlastimil Babka <vbabka@xxxxxxx> Reviewed-by: Michel Lespinasse <walken@xxxxxxxxxx> -- Michel "Walken" Lespinasse A program is never fully debugged until the last user dies. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>