[PATCH v2 0/2] ring-buffer: Fixes for available memory estimation
From: Vincent Donnefort
Date: Tue Oct 13 2026 - 07:11:47 EST
__rb_allocate_pages() uses si_mem_available() to fail early when there
is not enough memory for a ring buffer allocation. However it wasn't
updated with the introduction of persistent and remote buffers and
subbuf_order.
v2:
- Add "ring-buffer: Use subbuf_order in available memory estimation"
v1: https://lore.kernel.org/all/20261012163502.687061-1-vdonnefort@xxxxxxxxxx/
Vincent Donnefort (2):
ring-buffer: Skip si_mem_available() for persistent and remote buffers
ring-buffer: Use subbuf_order in available memory estimation
kernel/trace/ring_buffer.c | 47 +++++++++++++++++++-------------------
1 file changed, 24 insertions(+), 23 deletions(-)
base-commit: 24a19b953e2a3d0ea5a8c4951a0ab8f32720c907
--
2.56.0.385.gd3acb90ef8-goog