mtd: don't use PF_MEMALLOC
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Nov 30 07:59:02 EST 2009
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=d5ba1c8ffd0b7d38e1fac48184637e6d6c1197d3
Commit: d5ba1c8ffd0b7d38e1fac48184637e6d6c1197d3
Parent: f611a79fe9859a30f2a7ae94b4d24f8e2dd75c91
Author: KOSAKI Motohiro <kosaki.motohiro at jp.fujitsu.com>
AuthorDate: Tue Nov 17 16:18:41 2009 +0900
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Nov 30 11:33:25 2009 +0000
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 at jp.fujitsu.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/mtd_blkdevs.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c
index 955226d..fa83757 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()) {
More information about the linux-mtd-cvs
mailing list