]> git.karo-electronics.de Git - karo-tx-linux.git/commit
uprobes: Simplify the usage of uprobe->pending_list
authorOleg Nesterov <oleg@redhat.com>
Fri, 15 Jun 2012 15:43:53 +0000 (17:43 +0200)
committerIngo Molnar <mingo@kernel.org>
Sat, 16 Jun 2012 07:10:48 +0000 (09:10 +0200)
commit449d0d7c9fb87277175db34c009c70cb348004a8
tree90c1abe494cd40ccc05aa2a11c5da52714b4e168
parentd9c4a30e82614d43b55893a73f31e7284007ce82
uprobes: Simplify the usage of uprobe->pending_list

uprobe->pending_list is only used to create the temporary list,
it has no meaning after we drop uprobes_mmap_hash(inode).

No need to initialize this node or remove it from tmp_list, and
we can use list_for_each_entry().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Anton Arapov <anton@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/20120615154353.GA9614@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/uprobes.c