diff options
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/mtd_blkdevs.c | 3 | ||||
-rw-r--r-- | drivers/mtd/ubi/wl.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c index 51bc7e2f1f22..ef89780eb9d6 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> |
@@ -80,7 +81,7 @@ static int mtd_blktrans_thread(void *arg) | |||
80 | struct request_queue *rq = tr->blkcore_priv->rq; | 81 | struct request_queue *rq = tr->blkcore_priv->rq; |
81 | 82 | ||
82 | /* we might get involved when memory gets low, so use PF_MEMALLOC */ | 83 | /* we might get involved when memory gets low, so use PF_MEMALLOC */ |
83 | current->flags |= PF_MEMALLOC | PF_NOFREEZE; | 84 | current->flags |= PF_MEMALLOC; |
84 | 85 | ||
85 | spin_lock_irq(rq->queue_lock); | 86 | spin_lock_irq(rq->queue_lock); |
86 | while (!kthread_should_stop()) { | 87 | while (!kthread_should_stop()) { |
diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c index 9ecaf77eca9e..ab2174a56bc2 100644 --- a/drivers/mtd/ubi/wl.c +++ b/drivers/mtd/ubi/wl.c | |||
@@ -1346,6 +1346,7 @@ static int ubi_thread(void *u) | |||
1346 | ubi_msg("background thread \"%s\" started, PID %d", | 1346 | ubi_msg("background thread \"%s\" started, PID %d", |
1347 | ubi->bgt_name, current->pid); | 1347 | ubi->bgt_name, current->pid); |
1348 | 1348 | ||
1349 | set_freezable(); | ||
1349 | for (;;) { | 1350 | for (;;) { |
1350 | int err; | 1351 | int err; |
1351 | 1352 | ||