summaryrefslogtreecommitdiff
path: root/net/tipc
diff options
context:
space:
mode:
authorTaehee Yoo <ap420073@gmail.com>2019-11-22 08:15:19 +0000
committerJakub Kicinski <jakub.kicinski@netronome.com>2019-11-23 12:15:01 -0800
commitab818362c9054beb950b97a09ce7b0d56f5a32a1 (patch)
treefe4736e81ed1da31d5650b49fd77266d5df23009 /net/tipc
parent3a06ee33963dea642d38c04ed18d2a5f4fdc78fd (diff)
net: use rhashtable_lookup() instead of rhashtable_lookup_fast()
rhashtable_lookup_fast() internally calls rcu_read_lock() then, calls rhashtable_lookup(). So if rcu_read_lock() is already held, rhashtable_lookup() is enough. Signed-off-by: Taehee Yoo <ap420073@gmail.com> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c
index 5d7859aac78e..a1c8d722ca20 100644
--- a/net/tipc/socket.c
+++ b/net/tipc/socket.c
@@ -2880,7 +2880,7 @@ static struct tipc_sock *tipc_sk_lookup(struct net *net, u32 portid)
struct tipc_sock *tsk;
rcu_read_lock();
- tsk = rhashtable_lookup_fast(&tn->sk_rht, &portid, tsk_rht_params);
+ tsk = rhashtable_lookup(&tn->sk_rht, &portid, tsk_rht_params);
if (tsk)
sock_hold(&tsk->sk);
rcu_read_unlock();