From 01bdcaf9d73b3d8e494bfb2c96309ae7cbdf036d Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 14 Jul 2004 14:04:27 +0000 Subject: [PATCH] b=3829 - mds_copy_unlink_reply() shouldn't be called if md_unlink() returns an error --- lustre/mds/mds_reint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/mds/mds_reint.c b/lustre/mds/mds_reint.c index 8dca20e..8564f6b 100644 --- a/lustre/mds/mds_reint.c +++ b/lustre/mds/mds_reint.c @@ -1542,7 +1542,8 @@ static int mds_reint_unlink_remote(struct mds_update_record *rec, int offset, rc = md_unlink(mds->mds_lmv_exp, &op_data, &request); cleanup_phase = 2; if (request) { - mds_copy_unlink_reply(req, request); + if (rc == 0) + mds_copy_unlink_reply(req, request); ptlrpc_req_finished(request); } if (rc == 0) { -- 1.8.3.1