ANDROID: sched: Add find_exec_ctx helper
Add a helper to find the runnable owner down a chain of blocked waiters This patch was broken out from a larger chain migration patch originally by Connor O'Brien. Cc: Joel Fernandes <joelaf@google.com> Cc: Qais Yousef <qyousef@layalina.io> Cc: Ingo Molnar <mingo@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Juri Lelli <juri.lelli@redhat.com> Cc: Vincent Guittot <vincent.guittot@linaro.org> Cc: Dietmar Eggemann <dietmar.eggemann@arm.com> Cc: Valentin Schneider <vschneid@redhat.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Ben Segall <bsegall@google.com> Cc: Zimuzo Ezeozue <zezeozue@google.com> Cc: Mel Gorman <mgorman@suse.de> Cc: Will Deacon <will@kernel.org> Cc: Waiman Long <longman@redhat.com> Cc: Boqun Feng <boqun.feng@gmail.com> Cc: "Paul E. McKenney" <paulmck@kernel.org> Cc: Metin Kaya <Metin.Kaya@arm.com> Cc: Xuewen Yan <xuewen.yan94@gmail.com> Cc: K Prateek Nayak <kprateek.nayak@amd.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Daniel Lezcano <daniel.lezcano@linaro.org> Cc: kernel-team@android.com Change-Id: I0d490e9360b1e3e12498c7d05cc7f335e9c2c296 Signed-off-by:Connor O'Brien <connoro@google.com> [jstultz: split out from larger chain migration patch] Signed-off-by:
John Stultz <jstultz@google.com> Bug: 306081722 --- v8 * Minor formatting changes suggested by Metin Kaya * Fix for null owner case, uncovered by enabling optimistic spinning * Add null exec_ctx check to this patch from an earlier patch, as suggested by Metin v10: * Cleanup suggested by Metin to go directly to mutex owner * Simplify logic to task_queued_on_rq suggested by Metin
Loading
Please sign in to comment