From: Zach Brown Date: Fri, 23 Jul 2010 17:37:33 +0000 (-0700) Subject: RDS: cancel connection work structs as we shut down X-Git-Tag: v4.1.12-92~319^2^2~2^2~65 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f62616d42d823b107eacb7a1fb1c6822ded0d221;p=users%2Fjedix%2Flinux-maple.git RDS: cancel connection work structs as we shut down Nothing was canceling the send and receive work that might have been queued as a conn was being destroyed. Signed-off-by: Zach Brown Signed-off-by: Chris Mason Signed-off-by: Bang Nguyen --- diff --git a/net/rds/connection.c b/net/rds/connection.c index 9452ba615530..87c4544007ea 100644 --- a/net/rds/connection.c +++ b/net/rds/connection.c @@ -336,6 +336,10 @@ void rds_conn_destroy(struct rds_connection *conn) rds_conn_drop(conn); flush_work(&conn->c_down_w); + /* make sure lingering queued work won't try to ref the conn */ + cancel_delayed_work_sync(&conn->c_send_w); + cancel_delayed_work_sync(&conn->c_recv_w); + /* tear down queued messages */ list_for_each_entry_safe(rm, rtmp, &conn->c_send_queue,