Commit 035aff8c authored by David Woodhouse's avatar David Woodhouse Committed by David Woodhouse

MTD translation layer helper: set PF_NOFREEZE to allow sleep

Patch from Todd Poynor
Signed-Off-By: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 637465e0
/* /*
* $Id: mtd_blkdevs.c,v 1.22 2004/07/12 12:35:28 dwmw2 Exp $ * $Id: mtd_blkdevs.c,v 1.23 2004/08/19 01:54:36 tpoynor Exp $
* *
* (C) 2003 David Woodhouse <dwmw2@infradead.org> * (C) 2003 David Woodhouse <dwmw2@infradead.org>
* *
...@@ -81,7 +81,7 @@ static int mtd_blktrans_thread(void *arg) ...@@ -81,7 +81,7 @@ static int mtd_blktrans_thread(void *arg)
struct request_queue *rq = tr->blkcore_priv->rq; struct request_queue *rq = tr->blkcore_priv->rq;
/* we might get involved when memory gets low, so use PF_MEMALLOC */ /* we might get involved when memory gets low, so use PF_MEMALLOC */
current->flags |= PF_MEMALLOC; current->flags |= PF_MEMALLOC | PF_NOFREEZE;
daemonize("%sd", tr->name); daemonize("%sd", tr->name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment