diff options
author | Oleg Nesterov <oleg@redhat.com> | 2012-06-15 15:43:36 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-06-16 07:10:44 (GMT) |
commit | 7a5bfb66b07f22d2429db776da7bb8b57bfb5cff (patch) | |
tree | aa6a419726f99052171f05b004db45692fef3315 /kernel/trace/trace.h | |
parent | 268720903f87e0b84b161626c4447b81671b5d18 (diff) | |
download | linux-fsl-qoriq-7a5bfb66b07f22d2429db776da7bb8b57bfb5cff.tar.xz |
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 <oleg@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Anton Arapov <anton@redhat.com>
Link: http://lkml.kernel.org/r/20120615154336.GA9588@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/trace/trace.h')
0 files changed, 0 insertions, 0 deletions