From: Alex Wang Date: Tue, 15 Apr 2014 18:32:26 +0000 (-0700) Subject: ovs-rcu: Name the ovsrcu_postpone_thread to 'urcu'. X-Git-Tag: sliver-openvswitch-2.2.90-1~3^2~101 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=882470607bdbaec5a1252f34cf97f4b4ef000d21;hp=3aadc5bbb058d52bb350424cbfef80f2d0c50ecd;p=sliver-openvswitch.git ovs-rcu: Name the ovsrcu_postpone_thread to 'urcu'. The ovs-rcu module adds a new thread for checking the grace period. Since the thread name is not set, it will inherit the name of the thread that creates it. This makes the 'top' output quite confusing. This commit names the thread to 'urcu' for clarity. Acked-by: Ben Pfaff Signed-off-by: Alex Wang --- diff --git a/lib/ovs-rcu.c b/lib/ovs-rcu.c index 1843ef598..269f51b53 100644 --- a/lib/ovs-rcu.c +++ b/lib/ovs-rcu.c @@ -227,6 +227,7 @@ ovsrcu_call_postponed(void) static void * ovsrcu_postpone_thread(void *arg OVS_UNUSED) { + set_subprogram_name("urcu"); pthread_detach(pthread_self()); for (;;) {