inetpeer: fix a race in inetpeer_gc_worker()
[pandora-kernel.git] / include / net / inetpeer.h
index ac8a4ea..34b06da 100644 (file)
@@ -41,7 +41,10 @@ struct inet_peer {
        u32                     pmtu_orig;
        u32                     pmtu_learned;
        struct inetpeer_addr_base redirect_learned;
-       struct list_head        gc_list;
+       union {
+               struct list_head        gc_list;
+               struct rcu_head     gc_rcu;
+       };
        /*
         * Once inet_peer is queued for deletion (refcnt == -1), following fields
         * are not available: rid, ip_id_count, tcp_ts, tcp_ts_stamp