]> git.neil.brown.name Git - history.git/commitdiff
MTD translation layer helper: set PF_NOFREEZE to allow sleep
authorDavid Woodhouse <dwmw2@shinybook.infradead.org>
Thu, 21 Oct 2004 01:17:33 +0000 (02:17 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Thu, 21 Oct 2004 01:17:33 +0000 (02:17 +0100)
Patch from Todd Poynor

Signed-Off-By: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/mtd_blkdevs.c

index b134315ab51854d4416cd677b0295ef1e4b60af3..2a417942f3442c53a3f111e448b419c624734f33 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $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>
  *
@@ -81,7 +81,7 @@ static int mtd_blktrans_thread(void *arg)
        struct request_queue *rq = tr->blkcore_priv->rq;
 
        /* 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);