提交 0c484240 编写于 作者: S santosh.shilimkar@oracle.com 提交者: David S. Miller

RDS: check for congestion updates during rds_send_xmit

Ensure we don't keep sending the data if the link is congested.
Reviewed-by: NAjaykumar Hotchandani <ajaykumar.hotchandani@oracle.com>
Signed-off-by: NSantosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: NSantosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 73ce4317
......@@ -411,7 +411,8 @@ int rds_send_xmit(struct rds_connection *conn)
*/
if (ret == 0) {
smp_mb();
if (!list_empty(&conn->c_send_queue) &&
if ((test_bit(0, &conn->c_map_queued) ||
!list_empty(&conn->c_send_queue)) &&
send_gen == conn->c_send_gen) {
rds_stats_inc(s_send_lock_queue_raced);
goto restart;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册