Quellcode durchsuchen

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 <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
KOSAKI Motohiro vor 15 Jahren
Ursprung
Commit
d5ba1c8ffd
1 geänderte Dateien mit 0 neuen und 3 gelöschten Zeilen
  1. 0 3
      drivers/mtd/mtd_blkdevs.c

+ 0 - 3
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()) {