From: Davidlohr Bueso Date: Tue, 21 Jan 2014 23:49:16 +0000 (-0800) Subject: mm/mlock: prepare params outside critical region X-Git-Tag: v3.14-rc1~134^2~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f1cd7054fe7f45e65dd4963d0a38e5ab7a57cae;p=pandora-kernel.git mm/mlock: prepare params outside critical region 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 Cc: Rik van Riel Reviewed-by: Michel Lespinasse Acked-by: Vlastimil Babka Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed