From bae1ca9a56aa743f70719cdef9118f2407ac8526 Mon Sep 17 00:00:00 2001 From: shadow Date: Thu, 4 Jun 2009 03:59:58 +0000 Subject: [PATCH] clear mod_close_req if we fail to send request Branch b1_8 b=19756 i=tappro i=green --- lustre/mdc/mdc_request.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lustre/mdc/mdc_request.c b/lustre/mdc/mdc_request.c index 3a2ed66..6a3701e 100644 --- a/lustre/mdc/mdc_request.c +++ b/lustre/mdc/mdc_request.c @@ -598,9 +598,6 @@ static void mdc_commit_open(struct ptlrpc_request *req) if (mod == NULL) return; - if (mod->mod_close_req != NULL) - mod->mod_close_req->rq_cb_data = NULL; - if (mod->mod_och != NULL) mod->mod_och->och_mod = NULL; @@ -892,8 +889,8 @@ int mdc_close(struct obd_export *exp, struct mdc_op_data *data, struct obdo *oa, EXIT; *request = req; out: - if (rc != 0 && req && req->rq_commit_cb) - req->rq_commit_cb(req); + if (rc != 0 && och->och_mod) + och->och_mod->mod_close_req = NULL; return rc; } -- 1.8.3.1