I had just found this myself, as I had a feeling my
initial resolution of the conflict was incorrect.

I've merged your patch and pushed it to the repo.

Bruce

In message: [linux-yocto][v5.10/standard/preempt-rt/base][PATCH] fix 
linux-yocto-rt compile error
on 05/09/2023 Li Wang wrote:

> kernel/cgroup/cpuset.c:2959:28: error: 'cpuset_rwsem' undeclared (first use 
> in this function); did you mean 'cpuset_mutex'?
>  2959 |         percpu_down_write(&cpuset_rwsem);
>       |                            ^~~~~~~~~~~~
>       |                            cpuset_mutex
> 
> Signed-off-by: Li Wang <[email protected]>
> ---
>  kernel/cgroup/cpuset.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c
> index 9aac3392c0ff..fd371215b81f 100644
> --- a/kernel/cgroup/cpuset.c
> +++ b/kernel/cgroup/cpuset.c
> @@ -2956,7 +2956,7 @@ static void cpuset_css_free(struct cgroup_subsys_state 
> *css)
>  
>  static void cpuset_bind(struct cgroup_subsys_state *root_css)
>  {
> -     percpu_down_write(&cpuset_rwsem);
> +     mutex_lock(&cpuset_mutex);
>       raw_spin_lock_irq(&callback_lock);
>  
>       if (is_in_v2_mode()) {
> @@ -2969,7 +2969,7 @@ static void cpuset_bind(struct cgroup_subsys_state 
> *root_css)
>       }
>  
>       raw_spin_unlock_irq(&callback_lock);
> -     percpu_up_write(&cpuset_rwsem);
> +     mutex_unlock(&cpuset_mutex);
>  }
>  
>  /*
> -- 
> 2.39.1
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13037): 
https://lists.yoctoproject.org/g/linux-yocto/message/13037
Mute This Topic: https://lists.yoctoproject.org/mt/101185581/21656
Group Owner: [email protected]
Unsubscribe: 
https://lists.yoctoproject.org/g/linux-yocto/leave/6687884/21656/624485779/xyzzy
 [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to