Skip to content

Commit c8191ee

Browse files
committed
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. Acked-by: Andrea Righi <arighi@nvidia.com> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent 340de1f commit c8191ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sched/ext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static struct scx_dispatch_q *find_global_dsq(struct task_struct *p)
207207

208208
static struct scx_dispatch_q *find_user_dsq(struct scx_sched *sch, u64 dsq_id)
209209
{
210-
return rhashtable_lookup_fast(&sch->dsq_hash, &dsq_id, dsq_hash_params);
210+
return rhashtable_lookup(&sch->dsq_hash, &dsq_id, dsq_hash_params);
211211
}
212212

213213
/*

0 commit comments

Comments
 (0)