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

Signed-off-by: MORITA Kazutaka <[email protected]>
---
 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

-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to