Whamcloud - gitweb
don't assign mod_close_req for failed send.
authorshadow <shadow>
Thu, 4 Jun 2009 04:27:58 +0000 (04:27 +0000)
committershadow <shadow>
Thu, 4 Jun 2009 04:27:58 +0000 (04:27 +0000)
Branch HEAD
b=19756
i=tappro
i=green

lustre/mdc/mdc_request.c

index 78d23f3..7d4d41b 100644 (file)
@@ -676,9 +676,6 @@ 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;
 
@@ -834,6 +831,9 @@ int mdc_close(struct obd_export *exp, struct md_op_data *op_data,
                         rc = -EPROTO;
         }
 
+        if (rc != 0 && mod)
+                 mod->mod_close_req = NULL;
+
         *request = req;
         RETURN(rc);
 }