mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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>
This commit is contained in:
committed by
Jakub Kicinski
parent
3a06ee3396
commit
ab818362c9
@@ -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();
|
||||
|
Reference in New Issue
Block a user