From 46f7655a815fa0a850d309fb64fa0e988fd32889 Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Fri, 3 Feb 2012 11:07:54 -0500 Subject: [PATCH] RDS Make sure we check for congestion updates during rds_send_xmit Signed-off-by: Chris Mason Signed-off-by: Bang Nguyen --- net/rds/send.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/rds/send.c b/net/rds/send.c index 0cbddbc942f5..11a6728e3a06 100644 --- a/net/rds/send.c +++ b/net/rds/send.c @@ -418,7 +418,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; -- 2.50.1