Re: [PATCH v2 1/2] tracing: ring-buffer: Have the ring buffer code do the vmap of physical memory
From: Linus Torvalds
Date: Mon Mar 31 2025 - 21:45:09 EST
On Mon, 31 Mar 2025 at 18:35, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
>
> Just so I'm clear. Are you suggesting to add flush_dcache_range() to
> cacheflush.h and using that?
No, let's wait for it to be actually considered a problem.
And I think Jann is right that for kernel ranges you should use
flush_kernel_vmap_range() anyway.
Oh how I hate incoherent data caches.
Linus