Re: [PATCH] x86: improve algorithm in clflush_cache_range

Borislav Petkov
2015-04-29T10:29:07Z

On Tue, Apr 28, 2015 at 04:13:12PM -0600, Ross Zwisler wrote:
> The current algorithm used in clflush_cache_range() can cause the last
> cache line of the buffer to be flushed twice. Fix that algorithm so
> that each cache line will only be flushed once.
>
> Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
> Reported-by: H. Peter Anvin <hpa@zytor.com>
> Cc: H. Peter Anvin <hpa@zytor.com>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Ingo Molnar <mingo@redhat.com>
> Cc: x86@kernel.org
> Cc: Borislav Petkov <bp@suse.de>
> ---
> arch/x86/mm/pageattr.c | 13 ++++++-------
> 1 file changed, 6 insertions(+), 7 deletions(-)

Applied, thanks.

--
Regards/Gruss,
Boris.

ECO tip #101: Trim your mails when you reply.
--