From 43c7a8cbe571a2ecd02261bd9c12600fc837128b Mon Sep 17 00:00:00 2001 From: alex <alex> Date: Thu, 1 Jul 2004 09:04:27 +0000 Subject: [PATCH] - reply must be prepared before possible reconstruction VS: ---------------------------------------------------------------------- --- lustre/mds/handler.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index 3876cff28b..44597b1e75 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -1345,6 +1345,10 @@ static int mdt_obj_create(struct ptlrpc_request *req) if (body == NULL) RETURN(-EFAULT); + rc = lustre_pack_reply(req, 1, &size, NULL); + if (rc) + RETURN(rc); + MDS_CHECK_RESENT(req, reconstruct_create(req)); uc.luc_fsuid = body->oa.o_uid; @@ -1352,10 +1356,6 @@ static int mdt_obj_create(struct ptlrpc_request *req) push_ctxt(&saved, &obd->obd_lvfs_ctxt, &uc); - rc = lustre_pack_reply(req, 1, &size, NULL); - if (rc) - RETURN(rc); - repbody = lustre_msg_buf(req->rq_repmsg, 0, sizeof(*repbody)); if (body->oa.o_flags & OBD_FL_RECREATE_OBJS) { -- GitLab