ovs-rcu: Name the ovsrcu_postpone_thread to 'urcu'.
authorAlex Wang <alexw@nicira.com>
Tue, 15 Apr 2014 18:32:26 +0000 (11:32 -0700)
committerAlex Wang <alexw@nicira.com>
Tue, 22 Apr 2014 18:13:03 +0000 (11:13 -0700)
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 <blp@nicira.com>
Signed-off-by: Alex Wang <alexw@nicira.com>
lib/ovs-rcu.c

index 1843ef5..269f51b 100644 (file)
@@ -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 (;;) {