uprobes: Kill uprobe->copy_mutex
commitd4d3ccc6d1eb74bd315d49a3829c5ad6c48d21b0
authorOleg Nesterov <oleg@redhat.com>
Sat, 24 Nov 2012 17:51:34 +0000 (24 18:51 +0100)
committerOleg Nesterov <oleg@redhat.com>
Fri, 8 Feb 2013 16:47:08 +0000 (8 17:47 +0100)
treee8ccc45b9b9f8c72aaea150bf93d4d56cf9dc8d4
parentbb929284be40cbbdb347690742557d708fd504a9
uprobes: Kill uprobe->copy_mutex

Now that ->register_rwsem is safe under ->mmap_sem we can kill
->copy_mutex and abuse down_write(&uprobe->consumer_rwsem).

This makes prepare_uprobe() even more ugly, but we should kill
it anyway.

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