Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3529aba
)
don't assign mod_close_req for failed send.
author
shadow
<shadow>
Thu, 4 Jun 2009 04:27:58 +0000
(
04:27
+0000)
committer
shadow
<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
patch
|
blob
|
history
diff --git
a/lustre/mdc/mdc_request.c
b/lustre/mdc/mdc_request.c
index
78d23f3
..
7d4d41b
100644
(file)
--- a/
lustre/mdc/mdc_request.c
+++ b/
lustre/mdc/mdc_request.c
@@
-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);
}