Whamcloud - gitweb
clear mod_close_req if we fail to send request
authorshadow <shadow>
Thu, 4 Jun 2009 03:59:58 +0000 (03:59 +0000)
committershadow <shadow>
Thu, 4 Jun 2009 03:59:58 +0000 (03:59 +0000)
Branch b1_8
b=19756
i=tappro
i=green

lustre/mdc/mdc_request.c

index 3a2ed66..6a3701e 100644 (file)
@@ -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;
 }