From: Jes Sorensen <Jes.Sorensen@redhat.com>
To: NeilBrown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org, lukasz.dorau@intel.com,
adam.kwolek@intel.com, dledford@redhat.com
Subject: Re: [PATCH 2/3] Don't tell sysfs to launch the container as we are doing it ourselves
Date: Tue, 03 Jan 2012 11:24:42 +0100 [thread overview]
Message-ID: <4F02D76A.1010002@redhat.com> (raw)
In-Reply-To: <20111223104843.6ef30cba@notabene.brown>
On 12/23/11 00:48, NeilBrown wrote:
> On Fri, 21 Oct 2011 15:33:19 +0200 Jes.Sorensen@redhat.com wrote:
>
>> From: Jes Sorensen <Jes.Sorensen@redhat.com>
>>
>> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
>> ---
>> Incremental.c | 1 -
>> 1 files changed, 0 insertions(+), 1 deletions(-)
>>
>> diff --git a/Incremental.c b/Incremental.c
>> index 1a9a97b..cff7663 100644
>> --- a/Incremental.c
>> +++ b/Incremental.c
>> @@ -446,7 +446,6 @@ int Incremental(char *devname, int verbose, int runstop,
>> if (info.array.level == LEVEL_CONTAINER) {
>> int devnum = devnum; /* defined and used iff ->external */
>> /* Try to assemble within the container */
>> - sysfs_uevent(&info, "change");
>> if (verbose >= 0)
>> fprintf(stderr, Name
>> ": container %s now has %d devices\n",
>
> Hi Jes,
> I've had to revert this patch as it causes a regression.
>
> Without the 'change' event the container device doesn't get created in /dev.
>
> I'm not sure udev should be running "--incremental" on containers anyway, but
> if it does it shouldn't cause problems should it? If it does we should fix
> those problems.
Hi Neil,
I am wary of this being reverted as it fixed a genuine race condition.
On Fedora we don't have the problem with the container device not being
created, could it be that your udev scripts are not doing the right
thing in this case?
Cheers,
Jes
Thanks for the heads up!
next prev parent reply other threads:[~2012-01-03 10:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-21 13:33 [PATCH v2 0/3] Fix mdadm vs udev race in Incremental and Assemble Jes.Sorensen
2011-10-21 13:33 ` [PATCH 1/3] Remove race for starting container devices Jes.Sorensen
2011-10-22 0:49 ` NeilBrown
2011-10-22 8:22 ` Jes Sorensen
2011-10-21 13:33 ` [PATCH 2/3] Don't tell sysfs to launch the container as we are doing it ourselves Jes.Sorensen
2011-12-22 23:48 ` NeilBrown
2012-01-03 10:24 ` Jes Sorensen [this message]
2012-01-03 15:54 ` Doug Ledford
2012-01-04 2:34 ` NeilBrown
2012-01-06 18:35 ` Doug Ledford
2011-10-21 13:33 ` [PATCH 3/3] Hold the map lock while performing Assemble to avoid races with udev Jes.Sorensen
-- strict thread matches above, loose matches on Subject: below --
2011-10-20 10:06 [PATCH 0/3] Fix mdadm vs udev race in Incremental and Assemble Jes.Sorensen
2011-10-20 10:06 ` [PATCH 2/3] Don't tell sysfs to launch the container as we are doing it ourselves Jes.Sorensen
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=4F02D76A.1010002@redhat.com \
--to=jes.sorensen@redhat.com \
--cc=adam.kwolek@intel.com \
--cc=dledford@redhat.com \
--cc=linux-raid@vger.kernel.org \
--cc=lukasz.dorau@intel.com \
--cc=neilb@suse.de \
/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).