diff options
Diffstat (limited to 'drivers/mtd/mtd_blkdevs.c')
-rw-r--r-- | drivers/mtd/mtd_blkdevs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c index a8a158708293..74d9d30edabd 100644 --- a/drivers/mtd/mtd_blkdevs.c +++ b/drivers/mtd/mtd_blkdevs.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/mtd/mtd.h> | 16 | #include <linux/mtd/mtd.h> |
17 | #include <linux/blkdev.h> | 17 | #include <linux/blkdev.h> |
18 | #include <linux/blkpg.h> | 18 | #include <linux/blkpg.h> |
19 | #include <linux/freezer.h> | ||
19 | #include <linux/spinlock.h> | 20 | #include <linux/spinlock.h> |
20 | #include <linux/hdreg.h> | 21 | #include <linux/hdreg.h> |
21 | #include <linux/init.h> | 22 | #include <linux/init.h> |
@@ -79,7 +80,7 @@ static int mtd_blktrans_thread(void *arg) | |||
79 | struct request_queue *rq = tr->blkcore_priv->rq; | 80 | struct request_queue *rq = tr->blkcore_priv->rq; |
80 | 81 | ||
81 | /* we might get involved when memory gets low, so use PF_MEMALLOC */ | 82 | /* we might get involved when memory gets low, so use PF_MEMALLOC */ |
82 | current->flags |= PF_MEMALLOC | PF_NOFREEZE; | 83 | current->flags |= PF_MEMALLOC; |
83 | 84 | ||
84 | spin_lock_irq(rq->queue_lock); | 85 | spin_lock_irq(rq->queue_lock); |
85 | while (!kthread_should_stop()) { | 86 | while (!kthread_should_stop()) { |