mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 06:14:39 +01:00
The wakeup in preemptive (wip) monitor verifies if the
wakeup events always take place with preemption disabled:
|
|
v
#==================#
H preemptive H <+
#==================# |
| |
| preempt_disable | preempt_enable
v |
sched_waking +------------------+ |
+--------------- | | |
| | non_preemptive | |
+--------------> | | -+
+------------------+
The wakeup event always takes place with preemption disabled because
of the scheduler synchronization. However, because the preempt_count
and its trace event are not atomic with regard to interrupts, some
inconsistencies might happen.
The documentation illustrates one of these cases.
Link: https://lkml.kernel.org/r/c98ca678df81115fddc04921b3c79720c836b18f.1659052063.git.bristot@kernel.org
Cc: Wim Van Sebroeck <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Marco Elver <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: "Paul E. McKenney" <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Gabriele Paoloni <[email protected]>
Cc: Juri Lelli <[email protected]>
Cc: Clark Williams <[email protected]>
Cc: Tao Zhou <[email protected]>
Cc: Randy Dunlap <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Daniel Bristot de Oliveira <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
17 lines
602 B
Plaintext
17 lines
602 B
Plaintext
digraph state_automaton {
|
|
{node [shape = circle] "non_preemptive"};
|
|
{node [shape = plaintext, style=invis, label=""] "__init_preemptive"};
|
|
{node [shape = doublecircle] "preemptive"};
|
|
{node [shape = circle] "preemptive"};
|
|
"__init_preemptive" -> "preemptive";
|
|
"non_preemptive" [label = "non_preemptive"];
|
|
"non_preemptive" -> "non_preemptive" [ label = "sched_waking" ];
|
|
"non_preemptive" -> "preemptive" [ label = "preempt_enable" ];
|
|
"preemptive" [label = "preemptive"];
|
|
"preemptive" -> "non_preemptive" [ label = "preempt_disable" ];
|
|
{ rank = min ;
|
|
"__init_preemptive";
|
|
"preemptive";
|
|
}
|
|
}
|