[PATCH v13 03/32] ring-buffer: Introduce ring-buffer remotes

Markus Elfring Markus.Elfring at web.de
Fri Mar 6 08:37:35 PST 2026


…
> It is expected from the remote to keep the meta-page updated.

See also once more:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v7.0-rc2#n94


…
> +++ b/kernel/trace/ring_buffer.c
…
> +int ring_buffer_poll_remote(struct trace_buffer *buffer, int cpu)
> +{
…
> +	cpus_read_lock();
> +
> +	/*
> +	 * Make sure all the ring buffers are up to date before we start reading
> +	 * them.
> +	 */
> +	for_each_buffer_cpu(buffer, cpu) {
…
> +	}
> +
> +	cpus_read_unlock();
> +
> +	return 0;
> +}
…

How do you think about to use another lock guard here?
https://elixir.bootlin.com/linux/v7.0-rc1/source/include/linux/cpuhplock.h#L48

Regards,
Markus



More information about the linux-arm-kernel mailing list