From: Oleg Nesterov Date: Fri, 15 Jun 2012 15:43:36 +0000 (+0200) Subject: uprobes: Change build_map_info() to try kmalloc(GFP_NOWAIT) first X-Git-Tag: v3.6-rc1~167^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a5bfb66b07f22d2429db776da7bb8b57bfb5cff;p=pandora-kernel.git uprobes: Change build_map_info() to try kmalloc(GFP_NOWAIT) first build_map_info() doesn't allocate the memory under i_mmap_mutex to avoid the deadlock with page reclaim. But it can try GFP_NOWAIT first, it should work in the likely case and thus we almost never need the pre-alloc-and-retry path. Signed-off-by: Oleg Nesterov Acked-by: Srikar Dronamraju Acked-by: Peter Zijlstra Cc: Ananth N Mavinakayanahalli Cc: Anton Arapov Link: http://lkml.kernel.org/r/20120615154336.GA9588@redhat.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed