[sheepdog] [PATCH 4/5] sheep: rename worker threads for gateway and revoery

Liu Yuan namei.unix at gmail.com
Thu Aug 30 08:59:13 CEST 2012


From: Liu Yuan <tailai.ly at taobao.com>

Because they use short threads, their name is actually combination of
name string and idx. The idx might be big, so we try to keep short name
for short threads.

Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
---
 sheep/sheep.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sheep/sheep.c b/sheep/sheep.c
index 36e059a..b7a572d 100644
--- a/sheep/sheep.c
+++ b/sheep/sheep.c
@@ -367,9 +367,9 @@ int main(int argc, char **argv)
 	if (ret)
 		exit(1);
 
-	sys->gateway_wqueue = init_work_queue("gateway", false);
+	sys->gateway_wqueue = init_work_queue("gway", false);
 	sys->io_wqueue = init_work_queue("io", false);
-	sys->recovery_wqueue = init_work_queue("recovery", false);
+	sys->recovery_wqueue = init_work_queue("rw", false);
 	sys->deletion_wqueue = init_work_queue("deletion", true);
 	sys->block_wqueue = init_work_queue("block", true);
 	sys->sockfd_wqueue = init_work_queue("sockfd", true);
-- 
1.7.10.2




More information about the sheepdog mailing list