From: shadow Date: Thu, 4 Jun 2009 03:59:58 +0000 (+0000) Subject: clear mod_close_req if we fail to send request X-Git-Tag: v1_8_2_01~1^2~353 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=bae1ca9a56aa743f70719cdef9118f2407ac8526;p=fs%2Flustre-release.git clear mod_close_req if we fail to send request Branch b1_8 b=19756 i=tappro i=green --- 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; }