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
b=18844
[fs/lustre-release.git]
/
lnet
/
ulnds
/
socklnd
/
handlers.c
diff --git
a/lnet/ulnds/socklnd/handlers.c
b/lnet/ulnds/socklnd/handlers.c
index
e9eda46
..
521e5b2
100644
(file)
--- a/
lnet/ulnds/socklnd/handlers.c
+++ b/
lnet/ulnds/socklnd/handlers.c
@@
-1000,7
+1000,8
@@
usocklnd_read_data(usock_conn_t *conn)
nob = libcfs_sock_readv(conn->uc_sock,
conn->uc_rx_iov, conn->uc_rx_niov);
if (nob <= 0) {/* read nothing or error */
- conn->uc_errored = 1;
+ if (nob < 0)
+ conn->uc_errored = 1;
return nob;
}