Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7219d9a5 authored by Satya Durga Srinivasu Prabhala's avatar Satya Durga Srinivasu Prabhala
Browse files

sched/fair: Add rcu_read_lock() call in update_runtime_enabled()



Commit 7ebdf76d ("sched: Add snapshot of Window Assisted Load
Tracking (WALT)") removed rcu_read_lock() call from
update_runtime_enabled() which would lead to issues, fix it by
adding rcu_read_lock() call.

Change-Id: I3853fa31009da596e23fd559c55bc5c261fd0e0d
Signed-off-by: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
parent 3e4cd081
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -5127,6 +5127,8 @@ static void __maybe_unused update_runtime_enabled(struct rq *rq)
	struct task_group *tg;

	lockdep_assert_held(&rq->lock);

	rcu_read_lock();
	list_for_each_entry_rcu(tg, &task_groups, list) {
		struct cfs_bandwidth *cfs_b = &tg->cfs_bandwidth;
		struct cfs_rq *cfs_rq = tg->cfs_rq[cpu_of(rq)];