uprobes: Change build_map_info() to try kmalloc(GFP_NOWAIT) first
authorOleg Nesterov <[email protected]>
Fri, 15 Jun 2012 15:43:36 +0000 (17:43 +0200)
committerIngo Molnar <[email protected]>
Sat, 16 Jun 2012 07:10:44 +0000 (09:10 +0200)
commit7a5bfb66b07f22d2429db776da7bb8b57bfb5cff
treeaa6a419726f99052171f05b004db45692fef3315
parent268720903f87e0b84b161626c4447b81671b5d18
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 <[email protected]>
Acked-by: Srikar Dronamraju <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Cc: Ananth N Mavinakayanahalli <[email protected]>
Cc: Anton Arapov <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
kernel/events/uprobes.c