[Sheepdog] [PATCH 10/14] fix wrong call of setup_access_to_local_objects()

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Sat May 14 09:03:55 CEST 2011


We can call this function only when the request heaader is sd_obj_req.

Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 sheep/sdnet.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sheep/sdnet.c b/sheep/sdnet.c
index 1b1b7cc..0251f71 100644
--- a/sheep/sdnet.c
+++ b/sheep/sdnet.c
@@ -256,7 +256,8 @@ static void queue_request(struct request *req)
 		hdr->epoch = sys->epoch;
 
 	setup_ordered_sd_vnode_list(req);
-	setup_access_to_local_objects(req);
+	if (is_io_request(hdr->opcode))
+		setup_access_to_local_objects(req);
 
 	cevent->ctype = CPG_EVENT_REQUEST;
 	list_add_tail(&cevent->cpg_event_list, &sys->cpg_event_siblings);
-- 
1.5.6.5




More information about the sheepdog mailing list