From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757967Ab1JEVjM (ORCPT ); Wed, 5 Oct 2011 17:39:12 -0400 Received: from mail-qw0-f46.google.com ([209.85.216.46]:41812 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932446Ab1JEVjK (ORCPT ); Wed, 5 Oct 2011 17:39:10 -0400 Date: Wed, 5 Oct 2011 14:39:07 -0700 From: Andrew Morton To: Peter Zijlstra Cc: "linux-mm@kvack.org" , linux-arch , linux-kernel , Thomas Gleixner Subject: Re: [PATCH] mm, arch: Complete pagefault_disable abstraction Message-Id: <20111005143907.09283b14.akpm@linux-foundation.org> In-Reply-To: <1317820169.6766.20.camel@twins> References: <1317820169.6766.20.camel@twins> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 05 Oct 2011 15:09:29 +0200 Peter Zijlstra wrote: > Currently we already have pagefault_{disable,enable}() but they're > nothing more than a glorified preempt_{disable,enable}(). That's not very accurate or useful. Unlike preempt_disable(), pagefault_disable() will raise the preempt count when CONFIG_PREEMPT=n.