diff options
| author | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2026-05-22 13:08:58 -0400 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2026-05-28 22:40:51 -0400 |
| commit | eb3bd277b37cd435d26a44a40d8f7c87ff16feb6 (patch) | |
| tree | 190e85e9696e043587f8db6e7ba97d1613ccf155 /drivers/phy/eswin/git@git.tavy.me:linux.git | |
| parent | e7ae89a0c97ce2b68b0983cd01eda67cf373517d (diff) | |
ring-buffer: Skip invalid sub-buffers when validating persistent ring buffer
Skip invalid sub-buffers when validating the persistent ring buffer
instead of discarding the entire ring buffer. Only skipped buffers
are invalidated (cleared).
If the cache data in memory fails to be synchronized during a reboot,
the persistent ring buffer may become partially corrupted, but other
sub-buffers may still contain readable event data. Only discard the
subbuffers that are found to be corrupted.
Link: https://lore.kernel.org/all/20260520185018.051228084@kernel.org/
Link: https://patch.msgid.link/20260522171050.914418536@kernel.org
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
[SDR: Fixed max_loops in rb_iter_peek() as well ]
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'drivers/phy/eswin/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
