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:
c95101d
)
Don't deref desc after we drop our reference to it.
author
shaver
<shaver>
Wed, 24 Jul 2002 16:02:11 +0000
(16:02 +0000)
committer
shaver
<shaver>
Wed, 24 Jul 2002 16:02:11 +0000
(16:02 +0000)
lustre/osc/osc_request.c
patch
|
blob
|
history
diff --git
a/lustre/osc/osc_request.c
b/lustre/osc/osc_request.c
index
2691af9
..
d3fdd6f
100644
(file)
--- a/
lustre/osc/osc_request.c
+++ b/
lustre/osc/osc_request.c
@@
-555,11
+555,9
@@
static int osc_brw_read(struct lustre_handle *conn, struct lov_stripe_md *md,
RETURN(0);
l_wait_event_killable(desc->b_waitq, ptlrpc_check_bulk_received(desc));
+ rc = desc->b_flags & PTL_RPC_FL_INTR ? -EINTR : 0;
ptlrpc_bulk_decref(desc);
- if (desc->b_flags & PTL_RPC_FL_INTR)
- RETURN(-EINTR);
-
- RETURN(0);
+ RETURN(rc);
/* Clean up on error. */
out_unmap: