Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761953AbZAGVZq (ORCPT ); Wed, 7 Jan 2009 16:25:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761808AbZAGVZX (ORCPT ); Wed, 7 Jan 2009 16:25:23 -0500 Received: from one.firstfloor.org ([213.235.205.2]:41136 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761671AbZAGVZU (ORCPT ); Wed, 7 Jan 2009 16:25:20 -0500 Date: Wed, 7 Jan 2009 22:39:24 +0100 From: Andi Kleen To: Matthew Wilcox Cc: Linus Torvalds , Steven Rostedt , Peter Zijlstra , paulmck@linux.vnet.ibm.com, Gregory Haskins , Ingo Molnar , Andi Kleen , Chris Mason , Andrew Morton , Linux Kernel Mailing List , linux-fsdevel , linux-btrfs , Thomas Gleixner , Nick Piggin , Peter Morreale , Sven Dietrich Subject: Re: [PATCH -v5][RFC]: mutex: implement adaptive spinning Message-ID: <20090107213924.GP496@one.firstfloor.org> References: <1231281801.11687.125.camel@twins> <1231283778.11687.136.camel@twins> <1231329783.11687.287.camel@twins> <1231347442.11687.344.camel@twins> <20090107210923.GV2002@parisc-linux.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090107210923.GV2002@parisc-linux.org> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 572 Lines: 18 > I appreciate this is sample code, but using __get_user() on > non-userspace pointers messes up architectures which have separate > user/kernel spaces (eg the old 4G/4G split for x86-32). Do we have an > appropriate function for kernel space pointers? probe_kernel_address(). But it's slow. -Andi -- ak@linux.intel.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/