From: alex Date: Wed, 14 Jul 2004 14:04:27 +0000 (+0000) Subject: b=3829 X-Git-Tag: 1.3.4~602 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=01bdcaf9d73b3d8e494bfb2c96309ae7cbdf036d;p=fs%2Flustre-release.git b=3829 - mds_copy_unlink_reply() shouldn't be called if md_unlink() returns an error --- 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) {