From 8502173071b6117bb7f8e3230bca549cb77f80fd Mon Sep 17 00:00:00 2001 From: Ajaykumar Hotchandani Date: Mon, 18 Apr 2016 15:59:26 -0700 Subject: [PATCH] rds: schedule local connection activity in proper workqueue While reconnect, local connection is scheduled on rds_wq; while it it should have been scheduled rds_local_wq. This patch corrects that. Orabug: 23223537 Tested-by: Michael Nowak Signed-off-by: Ajaykumar Hotchandani Acked-by: Mukesh Kacker --- net/rds/threads.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/rds/threads.c b/net/rds/threads.c index 82b6f3e906ae..55a1b48240c9 100644 --- a/net/rds/threads.c +++ b/net/rds/threads.c @@ -139,7 +139,10 @@ void rds_queue_reconnect(struct rds_connection *conn) set_bit(RDS_RECONNECT_PENDING, &conn->c_flags); if (conn->c_reconnect_jiffies == 0) { conn->c_reconnect_jiffies = rds_sysctl_reconnect_min_jiffies; - queue_delayed_work(rds_wq, &conn->c_conn_w, 0); + if (conn->c_loopback) + queue_delayed_work(rds_local_wq, &conn->c_conn_w, 0); + else + queue_delayed_work(rds_wq, &conn->c_conn_w, 0); return; } -- 2.49.0