commit | 2d331915a04144dad738e725769d8fac06ef6155 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <edumazet@google.com> | Fri Apr 01 08:52:15 2016 -0700 |
committer | David S. Miller <davem@davemloft.net> | Mon Apr 04 22:11:19 2016 -0400 |
tree | 5bf80c73627b0783603e8a46573db2cf50041280 | |
parent | ee3cf32a4a5e6cf5ccc0f0de9865fda3ebc46436 [diff] |
tcp/dccp: use rcu locking in inet_diag_find_one_icsk() RX packet processing holds rcu_read_lock(), so we can remove pairs of rcu_read_lock()/rcu_read_unlock() in lookup functions if inet_diag also holds rcu before calling them. This is needed anyway as __inet_lookup_listener() and inet6_lookup_listener() will soon no longer increment refcount on the found listener. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>