Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755155Ab1CNJOK (ORCPT ); Mon, 14 Mar 2011 05:14:10 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:55596 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753525Ab1CNJOF convert rfc822-to-8bit (ORCPT ); Mon, 14 Mar 2011 05:14:05 -0400 Subject: Re: [PATCH 1/3] futex: do not pagefault_disable in futex_atomic_cmpxchg_inatomic() From: Peter Zijlstra To: Darren Hart Cc: Linus Torvalds , Michel Lespinasse , Thomas Gleixner , Ingo Molnar , Matt Turner , Russell King , David Howells , Tony Luck , Michal Simek , Ralf Baechle , "James E.J. Bottomley" , Benjamin Herrenschmidt , Martin Schwidefsky , Paul Mundt , "David S. Miller" , Chris Metcalf , Andrew Morton , LKML In-Reply-To: References: <20110307021127.GB31188@google.com> <20110309112550.GA3050@google.com> <20110311021654.GA26122@google.com> <20110311024731.GB26122@google.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Mon, 14 Mar 2011 10:13:17 +0100 Message-ID: <1300093997.2203.51.camel@twins> 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: 887 Lines: 19 On Sun, 2011-03-13 at 17:55 -0700, Darren Hart wrote: > I wondered about the preempt vs pagefault disable In current mainline they happen to be the same, but for -rt they're not. Its also conceptually different, with preempt disable we dis-allow any scheduling, which thus also precludes most fault handlers. Disabling pagefault can be done without also disabling preemption (as is done in -rt) and simply means that we'll never try to handle the fault and fallback to the exception table or give up and segfault the kernel. Its not dis-similar to the whole rcu_read_lock() vs preempt_disable() stuff, for a while one implied the other. -- 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/