summaryrefslogtreecommitdiffstats
path: root/net/rds/ib_send.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2014-01-05 11:19:34 +0100
committerTakashi Iwai <tiwai@suse.de>2014-01-05 11:19:34 +0100
commit4b5a5096bb834102b2e821f5f34274f041862d67 (patch)
treefe55f4f11111e34d503a6a01aeb4bfc2eae5e88a /net/rds/ib_send.c
parent19570d747795f0ecff79403698b868dc5ad7fa86 (diff)
parent150116bcfbd9004f01e682535baddaca2b90d3b2 (diff)
downloadop-kernel-dev-4b5a5096bb834102b2e821f5f34274f041862d67.zip
op-kernel-dev-4b5a5096bb834102b2e821f5f34274f041862d67.tar.gz
Merge branch 'for-linus' into for-next
Diffstat (limited to 'net/rds/ib_send.c')
-rw-r--r--net/rds/ib_send.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/rds/ib_send.c b/net/rds/ib_send.c
index e590949..37be6e2 100644
--- a/net/rds/ib_send.c
+++ b/net/rds/ib_send.c
@@ -552,9 +552,8 @@ int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm,
&& rm->m_inc.i_hdr.h_flags & RDS_FLAG_CONG_BITMAP) {
rds_cong_map_updated(conn->c_fcong, ~(u64) 0);
scat = &rm->data.op_sg[sg];
- ret = sizeof(struct rds_header) + RDS_CONG_MAP_BYTES;
- ret = min_t(int, ret, scat->length - conn->c_xmit_data_off);
- return ret;
+ ret = max_t(int, RDS_CONG_MAP_BYTES, scat->length);
+ return sizeof(struct rds_header) + ret;
}
/* FIXME we may overallocate here */
OpenPOWER on IntegriCloud