From: Oleg Nesterov Date: Sun, 29 Jul 2012 18:22:49 +0000 (+0200) Subject: uprobes: __replace_page() needs munlock_vma_page() X-Git-Tag: v3.6-rc1~32^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=194f8dcbe9629d8e9346cf96345a9c0bbf0e67ae;p=pandora-kernel.git uprobes: __replace_page() needs munlock_vma_page() Like do_wp_page(), __replace_page() should do munlock_vma_page() for the case when the old page still has other !VM_LOCKED mappings. Unfortunately this needs mm/internal.h. Also, move put_page() outside of ptl lock. This doesn't really matter but looks a bit better. Signed-off-by: Oleg Nesterov Acked-by: Srikar Dronamraju Cc: Anton Arapov Cc: Srikar Dronamraju Link: http://lkml.kernel.org/r/20120729182249.GA20372@redhat.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed