diff options
author | KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> | 2009-11-17 02:18:41 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-11-30 06:33:25 -0500 |
commit | d5ba1c8ffd0b7d38e1fac48184637e6d6c1197d3 (patch) | |
tree | 9144fc3fb806c1449b1085207ab0a083ed556f45 /drivers/mtd | |
parent | f611a79fe9859a30f2a7ae94b4d24f8e2dd75c91 (diff) |
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | 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 955226d74808..fa83757e7c96 100644 --- a/drivers/mtd/mtd_blkdevs.c +++ b/drivers/mtd/mtd_blkdevs.c | |||
@@ -91,9 +91,6 @@ static int mtd_blktrans_thread(void *arg) | |||
91 | struct request_queue *rq = tr->blkcore_priv->rq; | 91 | struct request_queue *rq = tr->blkcore_priv->rq; |
92 | struct request *req = NULL; | 92 | struct request *req = NULL; |
93 | 93 | ||
94 | /* we might get involved when memory gets low, so use PF_MEMALLOC */ | ||
95 | current->flags |= PF_MEMALLOC; | ||
96 | |||
97 | spin_lock_irq(rq->queue_lock); | 94 | spin_lock_irq(rq->queue_lock); |
98 | 95 | ||
99 | while (!kthread_should_stop()) { | 96 | while (!kthread_should_stop()) { |