[PATCH] mtdblockd nofreeze

From: Todd Poynor
Date: Fri Aug 13 2004 - 14:43:04 EST


mtdblockd doesn't respond to process freeze requests, preventing system
suspend. It seems likely that mtdblockd should continue to flush blocks
during the device suspend phase, so a patch to spare the thread from
attempted freeze follows. If, on the other hand, mtdblockd does need to
implement freeze proper then I can send a patch for that instead, thanks
for any insight into this.

--- linux-2.6.8-rc4-orig/drivers/mtd/mtd_blkdevs.c 2004-08-10 18:51:15.000000000 -0700
+++ linux-2.6.8-rc4-mtdfix/drivers/mtd/mtd_blkdevs.c 2004-08-13 11:39:54.000000000 -0700
@@ -81,7 +81,7 @@
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);



--
Todd Poynor
MontaVista Software

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/