Commit e6770882 authored by Tejun Heo's avatar Tejun Heo
Browse files

sched_ext: Use rhashtable_lookup() instead of rhashtable_lookup_fast()



The find_user_dsq() function is called from contexts that are already
under RCU read lock protection. Switch from rhashtable_lookup_fast() to
rhashtable_lookup() to avoid redundant RCU locking.

Requires: bee8a520 ("rhashtable: Use rcu_dereference_all and rcu_dereference_all_check")
Acked-by: default avatarAndrea Righi <arighi@nvidia.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 987e0003
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -200,7 +200,7 @@ static struct scx_dispatch_q *find_global_dsq(struct scx_sched *sch,

static struct scx_dispatch_q *find_user_dsq(struct scx_sched *sch, u64 dsq_id)
{
	return rhashtable_lookup_fast(&sch->dsq_hash, &dsq_id, dsq_hash_params);
	return rhashtable_lookup(&sch->dsq_hash, &dsq_id, dsq_hash_params);
}

/*