From: Pavel Machek <pavel@ucw.cz>
To: Nigel Cunningham <ncunningham@cyclades.com>
Cc: Andrew Morton <akpm@digeo.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Make md thread NO_FREEZE.
Date: Wed, 16 Mar 2005 00:36:36 +0100 [thread overview]
Message-ID: <20050315233636.GD21292@elf.ucw.cz> (raw)
In-Reply-To: <1110924908.6454.136.camel@desktop.cunningham.myip.net.au>
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!
prev parent reply other threads:[~2005-03-15 23:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-15 22:15 Nigel Cunningham
2005-03-15 23:36 ` Pavel Machek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050315233636.GD21292@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=akpm@digeo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ncunningham@cyclades.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®