diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/pdflush.c | 1 | ||||
-rw-r--r-- | mm/vmscan.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/mm/pdflush.c b/mm/pdflush.c index 8ce0900dc95c..8f6ee073c0e3 100644 --- a/mm/pdflush.c +++ b/mm/pdflush.c | |||
@@ -92,6 +92,7 @@ struct pdflush_work { | |||
92 | static int __pdflush(struct pdflush_work *my_work) | 92 | static int __pdflush(struct pdflush_work *my_work) |
93 | { | 93 | { |
94 | current->flags |= PF_FLUSHER | PF_SWAPWRITE; | 94 | current->flags |= PF_FLUSHER | PF_SWAPWRITE; |
95 | set_freezable(); | ||
95 | my_work->fn = NULL; | 96 | my_work->fn = NULL; |
96 | my_work->who = current; | 97 | my_work->who = current; |
97 | INIT_LIST_HEAD(&my_work->list); | 98 | INIT_LIST_HEAD(&my_work->list); |
diff --git a/mm/vmscan.c b/mm/vmscan.c index 2225b7c9df85..d419e10e3daa 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -1421,6 +1421,7 @@ static int kswapd(void *p) | |||
1421 | * trying to free the first piece of memory in the first place). | 1421 | * trying to free the first piece of memory in the first place). |
1422 | */ | 1422 | */ |
1423 | tsk->flags |= PF_MEMALLOC | PF_SWAPWRITE | PF_KSWAPD; | 1423 | tsk->flags |= PF_MEMALLOC | PF_SWAPWRITE | PF_KSWAPD; |
1424 | set_freezable(); | ||
1424 | 1425 | ||
1425 | order = 0; | 1426 | order = 0; |
1426 | for ( ; ; ) { | 1427 | for ( ; ; ) { |