Eric Dumazet 55432d2b54 inetpeer: fix a race in inetpeer_gc_worker()
commit 5faa5df1fa2024 (inetpeer: Invalidate the inetpeer tree along with
the routing cache) added a race :

Before freeing an inetpeer, we must respect a RCU grace period, and make
sure no user will attempt to increase refcnt.

inetpeer_invalidate_tree() waits for a RCU grace period before inserting
inetpeer tree into gc_list and waking the worker. At that time, no
concurrent lookup can find a inetpeer in this tree.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-06-06 10:45:15 -07:00
..
2012-04-02 04:33:43 -04:00
2012-04-15 12:37:19 -04:00
2012-04-15 12:37:19 -04:00
2011-10-19 03:10:46 -04:00
2012-04-15 12:37:19 -04:00
2012-04-15 12:37:19 -04:00
2012-03-11 23:42:51 -07:00
2012-04-15 12:37:19 -04:00
2011-12-12 19:04:10 -05:00
2012-03-19 16:53:08 -04:00
2012-04-15 12:37:19 -04:00
2012-03-11 15:52:12 -07:00
2012-05-02 20:56:10 -04:00
2012-01-20 14:17:26 -05:00
2012-05-17 14:59:59 -04:00
2012-01-20 14:17:26 -05:00
2012-05-17 14:59:59 -04:00
2011-03-31 11:26:23 -03:00
2012-05-17 14:59:59 -04:00
2012-05-17 14:59:59 -04:00
2011-03-31 11:26:23 -03:00
2012-03-11 23:42:51 -07:00
2012-04-15 12:37:19 -04:00
2010-07-12 12:57:54 -07:00