mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
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>
This commit is contained in:
1 parent
340de1f673
commit
c8191ee8e6
1 file changed
+1
-1
+1
-1
@@ -207,7 +207,7 @@ static struct scx_dispatch_q *find_global_dsq(struct task_struct *p)
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user