From: Neil Brown <neilb@suse.de>
To: Bernd Schubert <bs@q-leap.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: [PATCH] (2nd try) force parallel resync
Date: Fri, 7 Dec 2007 13:10:37 +1100 [thread overview]
Message-ID: <18264.43933.856112.52203@notabene.brown> (raw)
In-Reply-To: message from Bernd Schubert on Thursday December 6
On Thursday December 6, bs@q-leap.de wrote:
> Hello,
>
> here is the second version of the patch. With this version also on
> setting /sys/block/*/md/sync_force_parallel the sync_thread is woken up.
> Though, I still don't understand why md_wakeup_thread() is not working.
Could give a little more detail on why you want this? When do you
want multiple arrays on the same device to sync at the same time?
What exactly is the hardware like?
md threads generally run for a little while to perform some task, then
stop and wait to be needed again. md_wakeup_thread says "you are
needed again".
The resync/recovery thread is a bit different. It just run md_do_sync
once. md_wakeup_thread is not really meaningful in that context.
What you want is:
wake_up(&resync_wait);
that will get any thread that is waiting for some other array to
resync to wake up and see if something needs to be done.
NeilBrown
next prev parent reply other threads:[~2007-12-07 2:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-06 19:06 [PATCH] (2nd try) force parallel resync Bernd Schubert
2007-12-07 2:10 ` Neil Brown [this message]
2007-12-07 12:38 ` Bernd Schubert
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=18264.43933.856112.52203@notabene.brown \
--to=neilb@suse.de \
--cc=bs@q-leap.de \
--cc=linux-raid@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).