]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - drivers/mmc/card/queue.c
Freezer: make kernel threads nonfreezable by default
[linux-2.6.git] / drivers / mmc / card / queue.c
index 4fb2089dc6900cb1399496defcf8184b106cdbd0..b53dac8d1b694f8ebaa63f7119f3e760e90e3e40 100644 (file)
@@ -11,6 +11,7 @@
  */
 #include <linux/module.h>
 #include <linux/blkdev.h>
+#include <linux/freezer.h>
 #include <linux/kthread.h>
 
 #include <linux/mmc/card.h>
@@ -44,11 +45,7 @@ static int mmc_queue_thread(void *d)
        struct mmc_queue *mq = d;
        struct request_queue *q = mq->queue;
 
-       /*
-        * Set iothread to ensure that we aren't put to sleep by
-        * the process freezing.  We handle suspension ourselves.
-        */
-       current->flags |= PF_MEMALLOC|PF_NOFREEZE;
+       current->flags |= PF_MEMALLOC;
 
        down(&mq->thread_sem);
        do {