Skip to content

Commit

Permalink
mtd: don't use PF_MEMALLOC
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
  • Loading branch information
kosaki authored and David Woodhouse committed Nov 30, 2009
1 parent f611a79 commit d5ba1c8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/mtd/mtd_blkdevs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit d5ba1c8

Please sign in to comment.