From 882470607bdbaec5a1252f34cf97f4b4ef000d21 Mon Sep 17 00:00:00 2001 From: Alex Wang Date: Tue, 15 Apr 2014 11:32:26 -0700 Subject: [PATCH] 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 --- lib/ovs-rcu.c | 1 + 1 file changed, 1 insertion(+) 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 (;;) { -- 2.47.0