Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933967Ab0KQKlC (ORCPT ); Wed, 17 Nov 2010 05:41:02 -0500 Received: from canuck.infradead.org ([134.117.69.58]:34416 "EHLO canuck.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933120Ab0KQKlA convert rfc822-to-8bit (ORCPT ); Wed, 17 Nov 2010 05:41:00 -0500 Subject: Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lockless From: Peter Zijlstra To: Huang Ying Cc: Andrew Morton , Len Brown , "linux-kernel@vger.kernel.org" , Andi Kleen , "linux-acpi@vger.kernel.org" , Linus Torvalds , Thomas Gleixner , Ingo Molnar , Mauro Carvalho Chehab In-Reply-To: <1289960281.8719.1218.camel@yhuang-dev> References: <1289868791-16658-1-git-send-email-ying.huang@intel.com> <1289868791-16658-2-git-send-email-ying.huang@intel.com> <20101116135038.fcaa90ca.akpm@linux-foundation.org> <1289960281.8719.1218.camel@yhuang-dev> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Wed, 17 Nov 2010 11:40:58 +0100 Message-ID: <1289990458.2109.675.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 627 Lines: 17 On Wed, 2010-11-17 at 10:18 +0800, Huang Ying wrote: > > cmpxchg has been used in that way by ftrace and perf for a long time. So > I agree to make it a requirement on future architecture ports. Neither mandate an architecture do this though, only that when an architecture wants to support either feature and has NMIs (not all archs have NMI equivalents) it has to be safe. -- 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/