Re: [PATCH v2 1/2] ring-buffer: Introducing ring-buffer mapping functions
From: Steven Rostedt
Date: Wed Mar 29 2023 - 09:14:42 EST
On Wed, 29 Mar 2023 14:10:09 +0100
Vincent Donnefort <vdonnefort@xxxxxxxxxx> wrote:
> The v2 of this series only updates the head page in the update ioctl
> (ring_buffer_update_meta_page()) Couldn't find a nice way around that as it can
> be either updated by the reader or the writer. So the best solution seemed a
> call to set_head_page().
Yes, the update will race between readers and writers. Let's not worry
about this at the moment and not expose it yet. I'm looking at other
ways around this too.
-- Steve