Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934624Ab0KQLrM (ORCPT ); Wed, 17 Nov 2010 06:47:12 -0500 Received: from mail-qy0-f181.google.com ([209.85.216.181]:58950 "EHLO mail-qy0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934118Ab0KQLrL (ORCPT ); Wed, 17 Nov 2010 06:47:11 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=e3OrVPtE6+mLTHzy3a5kVnvkw9Z8IIOz/mTx8xu8pgdARGHelwSNKXH3qDd/rqC9DC xh6KSkwa/NU1Eg89FXXSRxhuFVtEG9WvcX8Lkr3PzCrjkQRnz9P1MgflqkydH0wNThsy v3+k7VRuF1qZn3xBoxfGDlA8UTbUwsS7Ms6/8= MIME-Version: 1.0 In-Reply-To: <1289990458.2109.675.camel@laptop> 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> <1289990458.2109.675.camel@laptop> Date: Wed, 17 Nov 2010 19:47:09 +0800 Message-ID: Subject: Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lockless From: huang ying To: Peter Zijlstra Cc: Huang Ying , 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 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 852 Lines: 20 On Wed, Nov 17, 2010 at 6:40 PM, Peter Zijlstra wrote: > 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. So we can make sure cmpxchg can be used in lock-less code on architectures with perf, irq_work or ftrace enabled? Best Regards, Huang Ying -- 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/