From f15013731b8ed36335f8916c2d5f451c62f53e12 Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Fri, 3 Feb 2012 11:09:07 -0500 Subject: [PATCH] RDS: kick krdsd to send congestion map updates We can get into a deadlock on the recv spinlock because congestion map updates can be sent in the recev path. This pushes the work off to krdsd instead. Signed-off-by: Chris Mason Signed-off-by: Bang Nguyen --- net/rds/cong.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/rds/cong.c b/net/rds/cong.c index a79da0cc98a7..34607ac4da53 100644 --- a/net/rds/cong.c +++ b/net/rds/cong.c @@ -220,7 +220,7 @@ void rds_cong_queue_updates(struct rds_cong_map *map) list_for_each_entry(conn, &map->m_conn_list, c_map_item) { if (!test_and_set_bit(0, &conn->c_map_queued)) { rds_stats_inc(s_cong_update_queued); - rds_send_xmit(conn); + queue_delayed_work(rds_wq, &conn->c_send_w, 0); } } -- 2.50.1