Commit 8ae8fc30 authored by Pavel Machek's avatar Pavel Machek Committed by Linus Torvalds

[PATCH] swsusp: md support

This adds basic support to md.c.
parent 7c548885
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <linux/bio.h> #include <linux/bio.h>
#include <linux/devfs_fs_kernel.h> #include <linux/devfs_fs_kernel.h>
#include <linux/buffer_head.h> /* for invalidate_bdev */ #include <linux/buffer_head.h> /* for invalidate_bdev */
#include <linux/suspend.h>
#include <linux/init.h> #include <linux/init.h>
...@@ -2465,6 +2466,8 @@ int md_thread(void * arg) ...@@ -2465,6 +2466,8 @@ int md_thread(void * arg)
wait_event_interruptible(thread->wqueue, wait_event_interruptible(thread->wqueue,
test_bit(THREAD_WAKEUP, &thread->flags)); test_bit(THREAD_WAKEUP, &thread->flags));
if (current->flags & PF_FREEZE)
refrigerator(PF_IOTHREAD);
clear_bit(THREAD_WAKEUP, &thread->flags); clear_bit(THREAD_WAKEUP, &thread->flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment