From: KOSAKI Motohiro Date: Tue, 17 Nov 2009 07:18:41 +0000 (+0900) Subject: mtd: don't use PF_MEMALLOC X-Git-Tag: v2.6.33-rc1~66^2~19 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=d5ba1c8ffd0b7d38e1fac48184637e6d6c1197d3;p=net-next-2.6.git mtd: don't use PF_MEMALLOC 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. Signed-off-by: KOSAKI Motohiro Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c index 955226d7480..fa83757e7c9 100644 --- a/drivers/mtd/mtd_blkdevs.c +++ b/drivers/mtd/mtd_blkdevs.c @@ -91,9 +91,6 @@ static int mtd_blktrans_thread(void *arg) struct request_queue *rq = tr->blkcore_priv->rq; struct request *req = NULL; - /* we might get involved when memory gets low, so use PF_MEMALLOC */ - current->flags |= PF_MEMALLOC; - spin_lock_irq(rq->queue_lock); while (!kthread_should_stop()) {