"Dan Upton" <upton.dan.linux@gmail.com> writes:
[not a scheduler expert; just some general comments]
Other CPUs can access it yes subject to the lock. You can test that
theory by running with only one CPU.
That might be obvious, but are you aware that printks inside
the scheduler can lead to deadlocks? printk when the buffer
is full calls wake_up and that calls the scheduler. So for
debugging the scheduler you need some other way to get
the information out.
-Andi
--