diff options
author | Seiji Aguchi <seiji.aguchi@hds.com> | 2012-11-14 21:26:21 +0100 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2012-11-27 01:01:56 +0100 |
commit | dd230fecab5e5833b11941f7f4a5732be78b1975 (patch) | |
tree | 6c835ccdfadc71936a7a503edf13eee277cd3cbf /kernel/rcutree.c | |
parent | efi_pstore: Check remaining space with QueryVariableInfo() before writing data (diff) | |
download | linux-dd230fecab5e5833b11941f7f4a5732be78b1975.tar.xz linux-dd230fecab5e5833b11941f7f4a5732be78b1975.zip |
efi_pstore: Add a logic erasing entries to an erase callback
[Issue]
Currently, efi_pstore driver simply overwrites existing panic messages in NVRAM.
So, in the following scenario, we will lose 1st panic messages.
1. kernel panics.
2. efi_pstore is kicked and writes panic messages to NVRAM.
3. system reboots.
4. kernel panics again before a user checks the 1st panic messages in NVRAM.
[Solution]
A reasonable solution to fix the issue is just holding multiple logs without erasing
existing entries.
This patch freshly adds a logic erasing existing entries, which shared with a write callback,
to an erase callback.
To support holding multiple logs, the write callback doesn't need to erase any entries and
it will be removed in a subsequent patch.
Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com>
Acked-by: Mike Waychison <mikew@google.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'kernel/rcutree.c')
0 files changed, 0 insertions, 0 deletions