[rds-commits] zab commits r136 - trunk/linux/net/rds
svn-commits@oss.oracle.com
svn-commits at oss.oracle.com
Wed Jul 26 18:01:16 CDT 2006
Author: zab
Date: 2006-07-26 18:01:15 -0500 (Wed, 26 Jul 2006)
New Revision: 136
Modified:
trunk/linux/net/rds/recv.c
Log:
MSG_TRUNC is set when the amount returned wasn't the whole
message, it doesn't change the return code.
Modified: trunk/linux/net/rds/recv.c
===================================================================
--- trunk/linux/net/rds/recv.c 2006-07-26 22:46:13 UTC (rev 135)
+++ trunk/linux/net/rds/recv.c 2006-07-26 23:01:15 UTC (rev 136)
@@ -263,10 +263,8 @@
continue;
}
- if (ret < be32_to_cpu(inc->i_hdr.h_len)) {
- ret = be32_to_cpu(inc->i_hdr.h_len);
+ if (ret < be32_to_cpu(inc->i_hdr.h_len))
msg->msg_flags |= MSG_TRUNC;
- }
rds_stats_inc(s_recv_delivered);
More information about the rds-commits
mailing list