From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964908Ab0CONVS (ORCPT ); Mon, 15 Mar 2010 09:21:18 -0400 Received: from relay1.sgi.com ([192.48.179.29]:60747 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964882Ab0CONVN (ORCPT ); Mon, 15 Mar 2010 09:21:13 -0400 Message-Id: <20100315132103.228021253@gulag1.americas.sgi.com> User-Agent: quilt/0.47-1 Date: Mon, 15 Mar 2010 08:21:03 -0500 From: holt@sgi.com To: Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner Cc: Venkatesh Pallipadi , Venkatesh Pallipadi , Suresh Siddha , Linux Kernel Mailing List , x86@kernel.org Subject: [patch 0/2] x86,pat: Reduce contention on the memtype_lock -V3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: x86@kernel.org --- arch/x86/include/asm/cacheflush.h | 44 +++++++++++++++++++++----------------- arch/x86/mm/pat.c | 28 ++++++++---------------- 2 files changed, 35 insertions(+), 37 deletions(-)