[Sheepdog] [PATCH] remove unnecessary access to sd_list in store_queue_request()

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Fri Apr 23 01:38:45 CEST 2010


queue_request() checks if the node is ready to accept a request.

Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
---
 collie/store.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/collie/store.c b/collie/store.c
index 6431dda..9d8c9ff 100644
--- a/collie/store.c
+++ b/collie/store.c
@@ -732,12 +732,6 @@ void store_queue_request(struct work *work, int idx)
 
 	dprintf("%d, %x, %" PRIx64" , %u, %u\n", idx, opcode, oid, epoch, req_epoch);
 
-	if (list_empty(&sys->sd_node_list)) {
-		/* we haven't got SD_OP_GET_NODE_LIST response yet. */
-		ret = SD_RES_SYSTEM_ERROR;
-		goto out;
-	}
-
 	if (hdr->flags & SD_FLAG_CMD_FORWARD) {
 		ret = check_epoch(req);
 		if (ret != SD_RES_SUCCESS)
-- 
1.6.5




More information about the sheepdog mailing list