From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with SMTP id 11DAB6B004D for ; Tue, 17 Nov 2009 07:47:44 -0500 (EST) Date: Tue, 17 Nov 2009 07:47:39 -0500 From: Jeff Layton Subject: Re: [PATCH 6/7] cifs: Don't use PF_MEMALLOC Message-ID: <20091117074739.4abaef85@tlielax.poochiereds.net> In-Reply-To: <20091117162111.3DE8.A69D9226@jp.fujitsu.com> References: <20091117161551.3DD4.A69D9226@jp.fujitsu.com> <20091117162111.3DE8.A69D9226@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: KOSAKI Motohiro Cc: LKML , samba-technical@lists.samba.org, Steve French , linux-mm , Andrew Morton , linux-cifs-client@lists.samba.org List-ID: On Tue, 17 Nov 2009 16:22:32 +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. > > Cc: Steve French > Cc: linux-cifs-client@lists.samba.org > Cc: samba-technical@lists.samba.org > Signed-off-by: KOSAKI Motohiro > --- > fs/cifs/connect.c | 1 - > 1 files changed, 0 insertions(+), 1 deletions(-) > > diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c > index 63ea83f..f9b1553 100644 > --- a/fs/cifs/connect.c > +++ b/fs/cifs/connect.c > @@ -337,7 +337,6 @@ cifs_demultiplex_thread(struct TCP_Server_Info *server) > bool isMultiRsp; > int reconnect; > > - current->flags |= PF_MEMALLOC; > cFYI(1, ("Demultiplex PID: %d", task_pid_nr(current))); > > length = atomic_inc_return(&tcpSesAllocCount); This patch appears to be safe for CIFS. I believe that the demultiplex thread only does mempool allocations currently. The only other case where it did an allocation was recently changed with the conversion of the oplock break code to use slow_work. Barring anything I've missed... Acked-by: Jeff Layton -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org