Re: [PATCH v9 1/4] ring-buffer: Allow splice reads on static buffers

From: Steven Rostedt

Date: Thu Sep 03 2026 - 14:34:10 EST


On Tue, 1 Sep 2026 16:54:42 +0100
Vincent Donnefort <vdonnefort@xxxxxxxxxx> wrote:

> ring_buffer_read_page() rejects splice (full=1) reads on static buffers
> (that is user-mapped, persistent or remote) because !read check assumes
> unread pages must be swapped. However for those buffers we have no other
> choice than memcpy the data.
>
> For the memcpy case, only return an error when the writer is still on
> the reader page for the splice interface to wait.
>
> Fixes: 117c39200d9d ("ring-buffer: Introducing ring-buffer mapping functions")
> Signed-off-by: Vincent Donnefort <vdonnefort@xxxxxxxxxx>

I'm going to apply this patch now, so you can drop it from your v10.

-- Steve