select_idle_sibling() is called from select_task_rq_fair(), which already has the RCU read lock held.
Unified · Split
| @@ -2670,8 +2670,6 @@ static int select_idle_sibling(struct task_struct *p, int target) · 2669 unmodified lines | ||
| 2670 | 2670 | /* |
| 2671 | 2671 | * Otherwise, iterate the domains and find an elegible idle cpu. |
| 2672 | 2672 | */ |
| 2673 | − rcu_read_lock(); | |
| 2674 | − | |
| 2675 | 2673 | sd = rcu_dereference(per_cpu(sd_llc, target)); |
| 2676 | 2674 | for_each_lower_domain(sd) { |
| 2677 | 2675 | sg = sd->groups; |
| @@ -2693,8 +2691,6 @@ next: · 15 unmodified lines | ||
| 2693 | 2691 | } while (sg != sd->groups); |
| 2694 | 2692 | } |
| 2695 | 2693 | done: |
| 2696 | − rcu_read_unlock(); | |
| 2697 | − | |
| 2698 | 2694 | return target; |
| 2699 | 2695 | } |
| 2700 | 2696 | |