Re: [PATCH] mm, slub: Use prefetchw instead of prefetch

From: Christoph Lameter
Date: Mon Oct 11 2021 - 03:21:20 EST


On Fri, 8 Oct 2021, Hyeonggon Yoo wrote:

> It's certain that an object will be not only read, but also
> written after allocation.

get_freepointer is used in multiple code path not only in allocation. It
is for example used when scanning through a freelist.

With this change all objects get needlessly dirtied and the cross cpu
cache contention is increased.