commit | e67271f3f26700192b83f8dde204d4afda11090d | [log] [tgz] |
---|---|---|
author | Nick Maniscalco <maniscalco@google.com> | Fri Aug 27 18:19:07 2021 +0000 |
committer | CQ Bot <commit-bot@chromium.org> | Fri Aug 27 18:19:07 2021 +0000 |
tree | f19941a081c4e1ac4458d1e5a7724626e8778f89 | |
parent | e7765fa80c24cbcc9c3fe867004d045c770fd53d [diff] |
[kernel][oom] Use "halt token" to coordinate concurrent reboots This change fixes a bug where an already in progress OOM reboot could be superseded by some other reboot operation (e.g. graceful reboot via syscall or critical job termination). Introduce the concept of a halt token that must be obtained prior to halting the system. Change existing non-panic code paths to acquire the halt token. If a code path fails to acquire the token, it must sleep, spin, or return depending on the context and resources (think locks) it holds. Add TestOOMSignalBeforeCriticalProcess test. Bug: 57008 Bug: 82229 Change-Id: I50e4d6b48897552e536fc2c239ffb173fd18c5a2 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/574141 Commit-Queue: Nick Maniscalco <maniscalco@google.com> Reviewed-by: John Grossman <johngro@google.com> Reviewed-by: Rasha Eqbal <rashaeqbal@google.com>
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.