]> git.baikalelectronics.ru Git - kernel.git/commit
mm/mlock: prepare params outside critical region
authorDavidlohr Bueso <davidlohr@hp.com>
Tue, 21 Jan 2014 23:49:16 +0000 (15:49 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 22 Jan 2014 00:19:44 +0000 (16:19 -0800)
commit8bff3ef8b8de5d893e51aa9fb372b87f6f0cd00c
tree3296b8809eca9c4eb6db72a4d00d2c534b6c8db2
parentf48854558379a0be443fe684a11ee9801d048107
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 <davidlohr@hp.com>
Cc: Rik van Riel <riel@redhat.com>
Reviewed-by: Michel Lespinasse <walken@google.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mlock.c