Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: bee8a520eb84 ("rhashtable: Use rcu_dereference_all and rcu_dereference_all_check")
Acked-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

Tejun Heo e6770882 987e0003

+1 -1
+1 -1
kernel/sched/ext.c
··· 200 200 201 201 static struct scx_dispatch_q *find_user_dsq(struct scx_sched *sch, u64 dsq_id) 202 202 { 203 - return rhashtable_lookup_fast(&sch->dsq_hash, &dsq_id, dsq_hash_params); 203 + return rhashtable_lookup(&sch->dsq_hash, &dsq_id, dsq_hash_params); 204 204 } 205 205 206 206 /*