From: santosh.shilimkar@oracle.com Date: Sat, 22 Aug 2015 22:45:27 +0000 (-0700) Subject: RDS: check for congestion updates during rds_send_xmit X-Git-Tag: v4.3-rc1~96^2~99^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c484240210a8c835a216dbca6f1d690e4094a7c;p=platform%2Fkernel%2Flinux-exynos.git RDS: check for congestion updates during rds_send_xmit Ensure we don't keep sending the data if the link is congested. Reviewed-by: Ajaykumar Hotchandani Signed-off-by: Santosh Shilimkar Signed-off-by: Santosh Shilimkar Signed-off-by: David S. Miller --- diff --git a/net/rds/send.c b/net/rds/send.c index 2581b8e..dd901c3 100644 --- a/net/rds/send.c +++ b/net/rds/send.c @@ -411,7 +411,8 @@ over_batch: */ 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;