Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d39e0602 authored by Steve Wise's avatar Steve Wise Committed by David S. Miller
Browse files

RDS/IW+IB: Set the RDS_LL_SEND_FULL bit when we're throttled.



The RDS_LL_SEND_FULL bit should be set when we stop transmitted due to
flow control.  Otherwise the send worker will keep trying as opposed to
sleeping until we unthrottle.  Saves CPU.

Signed-off-by: default avatarSteve Wise <swise@opengridcomputing.com>
Signed-off-by: default avatarAndy Grover <andy.grover@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 11bc9421
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -506,7 +506,7 @@ int rds_ib_xmit(struct rds_connection *conn, struct rds_message *rm,
			flow_controlled++;
		}
		if (work_alloc == 0) {
			rds_ib_ring_unalloc(&ic->i_send_ring, work_alloc);
			set_bit(RDS_LL_SEND_FULL, &conn->c_flags);
			rds_ib_stats_inc(s_ib_tx_throttle);
			ret = -ENOMEM;
			goto out;
+1 −1
Original line number Diff line number Diff line
@@ -549,7 +549,7 @@ int rds_iw_xmit(struct rds_connection *conn, struct rds_message *rm,
			flow_controlled++;
		}
		if (work_alloc == 0) {
			rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc);
			set_bit(RDS_LL_SEND_FULL, &conn->c_flags);
			rds_iw_stats_inc(s_iw_tx_throttle);
			ret = -ENOMEM;
			goto out;