uprobes: _unregister() should always do register_for_each_vma(false)
authorOleg Nesterov <oleg@redhat.com>
Fri, 23 Nov 2012 18:43:50 +0000 (19:43 +0100)
committerOleg Nesterov <oleg@redhat.com>
Fri, 8 Feb 2013 16:47:03 +0000 (17:47 +0100)
commit04aab9b2006bbdeff78dc162f206fdfebeca97d9
tree380a170734c6d850077e56848df0528f410247be
parent63633cbf82840d972248f11d2122b261d0d4779a
uprobes: _unregister() should always do register_for_each_vma(false)

uprobe_unregister() removes the breakpoints only if the last consumer
goes away. To support the filtering it should do this every time, we
want to remove the breakpoints which nobody else want to keep.

Note: given that filter_chain() is not actually implemented, this patch
itself doesn't change the behaviour yet, register_for_each_vma(false)
is a heavy "nop" unless there are no more consumers.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
kernel/events/uprobes.c