diff options
| author | Pavel Machek <pavel@ucw.cz> | 2002-12-05 06:09:27 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-12-05 06:09:27 -0800 |
| commit | 8ae8fc304f995083faf2a20d4e12bb43fb216694 (patch) | |
| tree | 5b54c0304200d5c3a45f15e1517553ca3ec144b6 | |
| parent | 7c5488856c4bd82b7e54f300753292bce56035b2 (diff) | |
[PATCH] swsusp: md support
This adds basic support to md.c.
| -rw-r--r-- | drivers/md/md.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index b1422210e83c..a2c2d9649dfa 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -36,6 +36,7 @@ #include <linux/bio.h> #include <linux/devfs_fs_kernel.h> #include <linux/buffer_head.h> /* for invalidate_bdev */ +#include <linux/suspend.h> #include <linux/init.h> @@ -2465,6 +2466,8 @@ int md_thread(void * arg) wait_event_interruptible(thread->wqueue, test_bit(THREAD_WAKEUP, &thread->flags)); + if (current->flags & PF_FREEZE) + refrigerator(PF_IOTHREAD); clear_bit(THREAD_WAKEUP, &thread->flags); |
