Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751055AbWJOP5v (ORCPT ); Sun, 15 Oct 2006 11:57:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751082AbWJOP5v (ORCPT ); Sun, 15 Oct 2006 11:57:51 -0400 Received: from ns2.suse.de ([195.135.220.15]:17839 "EHLO mx2.suse.de") by vger.kernel.org with ESMTP id S1751055AbWJOP5v (ORCPT ); Sun, 15 Oct 2006 11:57:51 -0400 Date: Sun, 15 Oct 2006 17:57:27 +0200 From: Nick Piggin To: Peter Zijlstra Cc: Linux Memory Management , Neil Brown , Anton Altaparmakov , Chris Mason , Linux Kernel , Andrew Morton , ralf@linux-mips.org, David Howells Subject: RRe: [patch 6/6] mm: fix pagecache write deadlocks Message-ID: <20061015155727.GA539@wotan.suse.de> References: <20061013143516.15438.8802.sendpatchset@linux.site> <20061013143616.15438.77140.sendpatchset@linux.site> <1160912230.5230.23.camel@lappy> <20061015115656.GA25243@wotan.suse.de> <1160920269.5230.29.camel@lappy> <20061015141953.GC25243@wotan.suse.de> <1160927224.5230.36.camel@lappy> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1160927224.5230.36.camel@lappy> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 799 Lines: 19 On Sun, Oct 15, 2006 at 05:47:03PM +0200, Peter Zijlstra wrote: > > > > And we should really decouple it from preempt entirely, in case we > > ever want to check for it some other way in the pagefault handler. > > How about we make sure all kmap_atomic implementations behave properly > and make in_atomic true. Hmm, but you may not be doing a copy*user within the kmap. And you may want an atomic copy*user not within a kmap (maybe). I think it really would be more logical to do it in a wrapper function pagefault_disable() pagefault_enable()? ;) - 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/