lkml.org 
[lkml]   [2005]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Make md thread NO_FREEZE.
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!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:11    [W:0.080 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site