]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/rds/connection.c
fib_hash: RCU conversion phase 2
[mv-sheeva.git] / net / rds / connection.c
index 519b4fe962b6057e68b04621b5459617d2a27cc4..870992e08cae2e86681d569b3ac27d83b6dffb89 100644 (file)
@@ -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,