Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-1757 brw: Fix short i/o and enable for mdc
[fs/lustre-release.git]
/
lustre
/
include
/
lustre_net.h
diff --git
a/lustre/include/lustre_net.h
b/lustre/include/lustre_net.h
index
353cb7a
..
91d014d
100644
(file)
--- a/
lustre/include/lustre_net.h
+++ b/
lustre/include/lustre_net.h
@@
-2071,11
+2071,12
@@
static inline int ptlrpc_client_bulk_active(struct ptlrpc_request *req)
LASSERT(req != NULL);
desc = req->rq_bulk;
+ if (!desc)
+ return 0;
+
if (req->rq_bulk_deadline > ktime_get_real_seconds())
return 1;
- if (!desc)
- return 0;
spin_lock(&desc->bd_lock);
rc = desc->bd_md_count;