[lkml]   [2010]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[patch 0/2] x86,pat: Reduce contention on the memtype_lock -V3

Tracking memtype on x86 uses a single global spin_lock for either reading
or changing the memory type. This includes changes made to page flags
which is perfectly parallel.

Part one of the patchset makes the page-based tracking use cmpxchg
without a need for a lock.

Part two of the patchset converts the spin_lock into a read/write lock.

To: Ingo Molnar <>
To: H. Peter Anvin <>
To: Thomas Gleixner <>
Signed-off-by: Robin Holt <>
Cc: Venkatesh Pallipadi <>
Cc: Venkatesh Pallipadi <>
Cc: Suresh Siddha <>
Cc: Linux Kernel Mailing List <>


arch/x86/include/asm/cacheflush.h | 44 +++++++++++++++++++++-----------------
arch/x86/mm/pat.c | 28 ++++++++----------------
2 files changed, 35 insertions(+), 37 deletions(-)

 \ /
  Last update: 2010-03-15 14:23    [W:0.052 / U:31.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site