From: KOSAKI Motohiro Subject: [PATCH 2/7] mmc: Don't use PF_MEMALLOC Date: Tue, 17 Nov 2009 16:17:50 +0900 (JST) Message-ID: <20091117161711.3DDA.A69D9226@jp.fujitsu.com> References: <20091117161551.3DD4.A69D9226@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20091117161551.3DD4.A69D9226@jp.fujitsu.com> Sender: owner-linux-mm@kvack.org To: LKML Cc: kosaki.motohiro@jp.fujitsu.com, linux-mm , Andrew Morton , linux-mmc@vger.kernel.org List-Id: linux-mmc@vger.kernel.org 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: linux-mmc@vger.kernel.org Signed-off-by: KOSAKI Motohiro --- drivers/mmc/card/queue.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/card/queue.c b/drivers/mmc/card/queue.c index 49e5823..5deb996 100644 --- a/drivers/mmc/card/queue.c +++ b/drivers/mmc/card/queue.c @@ -46,8 +46,6 @@ static int mmc_queue_thread(void *d) struct mmc_queue *mq = d; struct request_queue *q = mq->queue; - current->flags |= PF_MEMALLOC; - down(&mq->thread_sem); do { struct request *req = NULL; -- 1.6.2.5 -- 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