* [PATCH] Make md thread NO_FREEZE.
@ 2005-03-15 22:15 Nigel Cunningham
2005-03-15 23:36 ` Pavel Machek
0 siblings, 1 reply; 2+ messages in thread
From: Nigel Cunningham @ 2005-03-15 22:15 UTC (permalink / raw)
To: Andrew Morton, Pavel Machek; +Cc: Linux Kernel Mailing List
Hi again.
The md driver is currently frozen during suspend. I'm told this doesn't help much if you're seeking to suspend to RAID :>
Signed-of-by: Nigel Cunningham <ncunningham@cyclades.com>
diff -ruNp 213-missing-refrigerator-calls-old/drivers/md/md.c 213-missing-refrigerator-calls-new/drivers/md/md.c
--- 213-missing-refrigerator-calls-old/drivers/md/md.c 2005-02-14 09:05:26.000000000 +1100
+++ 213-missing-refrigerator-calls-new/drivers/md/md.c 2005-03-11 09:35:15.000000000 +1100
@@ -36,7 +36,6 @@
#include <linux/sysctl.h>
#include <linux/devfs_fs_kernel.h>
#include <linux/buffer_head.h> /* for invalidate_bdev */
-#include <linux/suspend.h>
#include <linux/init.h>
@@ -2763,6 +2762,7 @@ int md_thread(void * arg)
*/
daemonize(thread->name, mdname(thread->mddev));
+ current->flags |= PF_NOFREEZE;
current->exit_signal = SIGCHLD;
allow_signal(SIGKILL);
@@ -2787,8 +2787,6 @@ int md_thread(void * arg)
wait_event_interruptible(thread->wqueue,
test_bit(THREAD_WAKEUP, &thread->flags));
- if (current->flags & PF_FREEZE)
- refrigerator(PF_FREEZE);
clear_bit(THREAD_WAKEUP, &thread->flags);
--
Nigel Cunningham
Software Engineer, Canberra, Australia
http://www.cyclades.com
Bus: +61 (2) 6291 9554; Hme: +61 (2) 6292 8028; Mob: +61 (417) 100 574
Maintainer of Suspend2 Kernel Patches http://suspend2.net
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Make md thread NO_FREEZE.
2005-03-15 22:15 [PATCH] Make md thread NO_FREEZE Nigel Cunningham
@ 2005-03-15 23:36 ` Pavel Machek
0 siblings, 0 replies; 2+ messages in thread
From: Pavel Machek @ 2005-03-15 23:36 UTC (permalink / raw)
To: Nigel Cunningham; +Cc: Andrew Morton, Linux Kernel Mailing List
Hi!
> The md driver is currently frozen during suspend. I'm told this
>doesn't help much if you're seeking to suspend to RAID :>
Hmm, and does suspend actually work on md with this patch applied?
Pavel
> diff -ruNp 213-missing-refrigerator-calls-old/drivers/md/md.c 213-missing-refrigerator-calls-new/drivers/md/md.c
> --- 213-missing-refrigerator-calls-old/drivers/md/md.c 2005-02-14 09:05:26.000000000 +1100
> +++ 213-missing-refrigerator-calls-new/drivers/md/md.c 2005-03-11 09:35:15.000000000 +1100
> @@ -2763,6 +2762,7 @@ int md_thread(void * arg)
> */
>
> daemonize(thread->name, mdname(thread->mddev));
> + current->flags |= PF_NOFREEZE;
>
> current->exit_signal = SIGCHLD;
> allow_signal(SIGKILL);
> @@ -2787,8 +2787,6 @@ int md_thread(void * arg)
>
> wait_event_interruptible(thread->wqueue,
> test_bit(THREAD_WAKEUP, &thread->flags));
> - if (current->flags & PF_FREEZE)
> - refrigerator(PF_FREEZE);
>
> clear_bit(THREAD_WAKEUP, &thread->flags);
>
>
>
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-15 23:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-15 22:15 [PATCH] Make md thread NO_FREEZE Nigel Cunningham
2005-03-15 23:36 ` Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®