Re: [PATCH 2/3] mm/mlock: prepare params outside critical region

From: walken
Date: Wed Oct 23 2013 - 05:34:05 EST


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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/