Re: [PATCH v2 2/8] sched/topology: Wrappers for sched_domains_mutex

From: Shrikanth Hegde
Date: Fri Mar 07 2025 - 04:03:07 EST




On 3/7/25 14:23, Juri Lelli wrote:
Hi,

Thanks for the overall review!

On 07/03/25 12:04, Shrikanth Hegde wrote:
Hi Juri.

On 3/6/25 19:40, Juri Lelli wrote:
Create wrappers for sched_domains_mutex so that it can transparently be
used on both CONFIG_SMP and !CONFIG_SMP, as some function will need to
do.

...

Maybe sched_domains_mutex can be static since its only used in topology.c ?

We have a lockdep_assert in cpuset.c, don't we? We can create another
wrapper for that, but I am not sure it is going to be cleaner.

Ok. Sorry, my bad. I searched only in kernel/sched. You can ignore this comment.


Thanks,
Juri