Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754687AbZKQK1V (ORCPT ); Tue, 17 Nov 2009 05:27:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753843AbZKQK1U (ORCPT ); Tue, 17 Nov 2009 05:27:20 -0500 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:45899 "EHLO www.etchedpixels.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754087AbZKQK1U (ORCPT ); Tue, 17 Nov 2009 05:27:20 -0500 Date: Tue, 17 Nov 2009 10:29:03 +0000 From: Alan Cox To: KOSAKI Motohiro Cc: LKML , kosaki.motohiro@jp.fujitsu.com, linux-mm , Andrew Morton , linux-mmc@vger.kernel.org Subject: Re: [PATCH 2/7] mmc: Don't use PF_MEMALLOC Message-ID: <20091117102903.7cb45ff3@lxorguk.ukuu.org.uk> In-Reply-To: <20091117161711.3DDA.A69D9226@jp.fujitsu.com> References: <20091117161551.3DD4.A69D9226@jp.fujitsu.com> <20091117161711.3DDA.A69D9226@jp.fujitsu.com> X-Mailer: Claws Mail 3.7.3 (GTK+ 2.14.7; x86_64-redhat-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 Content-Length: 920 Lines: 21 On Tue, 17 Nov 2009 16:17:50 +0900 (JST) KOSAKI Motohiro wrote: > Non MM subsystem must not use PF_MEMALLOC. Memory reclaim need few > memory, anyone must not prevent it. Otherwise the system cause > mysterious hang-up and/or OOM Killer invokation. So now what happens if we are paging and all our memory is tied up for writeback to a device or CIFS etc which can no longer allocate the memory to complete the write out so the MM can reclaim ? Am I missing something or is this patch set not addressing the case where the writeback thread needs to inherit PF_MEMALLOC somehow (at least for the I/O in question and those blocking it) Alan -- 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/