uprobes: Simplify the usage of uprobe->pending_list
authorOleg Nesterov <[email protected]>
Fri, 15 Jun 2012 15:43:53 +0000 (17:43 +0200)
committerIngo Molnar <[email protected]>
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 <[email protected]>
Cc: Ananth N Mavinakayanahalli <[email protected]>
Cc: Anton Arapov <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Srikar Dronamraju <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
kernel/events/uprobes.c