[sheepdog] [PATCH 2/2] local: remove the unused local_block_wq workqueue

Christoph Hellwig hch at infradead.org
Mon May 28 13:59:31 CEST 2012


Signed-off-by: Christoph Hellwig <hch at lst.de>

Index: sheepdog/sheep/cluster/local.c
===================================================================
--- sheepdog.orig/sheep/cluster/local.c	2012-05-28 13:41:03.820591757 +0200
+++ sheepdog/sheep/cluster/local.c	2012-05-28 13:42:11.912593500 +0200
@@ -32,8 +32,6 @@ static int sigfd;
 static int event_pos;
 static struct sd_node this_node;
 
-static struct work_queue *local_block_wq;
-
 enum local_event_type {
 	EVENT_JOIN_REQUEST = 1,
 	EVENT_JOIN_RESPONSE,
@@ -453,12 +451,6 @@ static int local_init(const char *option
 
 	add_timer(&t, 1);
 
-	local_block_wq = init_work_queue(1);
-	if (!local_block_wq) {
-		eprintf("failed to create local workqueue: %m\n");
-		return -1;
-	}
-
 	ret = register_event(sigfd, local_handler, NULL);
 	if (ret) {
 		eprintf("failed to register local event handler (%d)\n", ret);



More information about the sheepdog mailing list