]> git.baikalelectronics.ru Git - kernel.git/commit
uprobes: Do not allocate current->utask unnecessary
authorOleg Nesterov <oleg@redhat.com>
Mon, 31 Dec 2012 17:20:42 +0000 (18:20 +0100)
committerOleg Nesterov <oleg@redhat.com>
Fri, 8 Feb 2013 16:47:12 +0000 (17:47 +0100)
commitc95f133ce7a65a8d87c7fd402446d6d9b8a030ff
treefa9d008fc34cd270613b63bbd9fd724c563daa44
parente3e8026fdf7453e01b07169b8a04c9c4f68ecf28
uprobes: Do not allocate current->utask unnecessary

handle_swbp() does get_utask() before can_skip_sstep() for no reason,
we do not need ->utask if can_skip_sstep() succeeds.

Move get_utask() to pre_ssout() who actually starts to use it. Move
the initialization of utask->active_uprobe/state as well. This way
the whole initialization is consolidated in pre_ssout().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Anton Arapov <anton@redhat.com>
kernel/events/uprobes.c