From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753860Ab0CXAgn (ORCPT ); Tue, 23 Mar 2010 20:36:43 -0400 Received: from relay1.sgi.com ([192.48.179.29]:40187 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753564Ab0CXAgY (ORCPT ); Tue, 23 Mar 2010 20:36:24 -0400 Message-Id: <20100324003608.811051277@gulag1.americas.sgi.com> User-Agent: quilt/0.47-1 Date: Tue, 23 Mar 2010 19:36:08 -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, Rafael Wysocki Subject: [patch 0/2] x86,pat: Reduce contention on the memtype_lock -V4 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 Cc: Rafael Wysocki --- arch/x86/include/asm/cacheflush.h | 44 +++++++++++++++++++++----------------- arch/x86/mm/pat.c | 30 +++++++++---------------- 2 files changed, 36 insertions(+), 38 deletions(-)