* [PATCH] Fix regression during add devices
@ 2016-03-09 5:20 Coly Li
2016-03-09 18:30 ` Jes Sorensen
0 siblings, 1 reply; 4+ messages in thread
From: Coly Li @ 2016-03-09 5:20 UTC (permalink / raw)
To: linux-raid; +Cc: Hannes Reinecke, Coly Li, Neil Brown
From: Hannes Reinecke <hare@suse.de>
Commit d180d2aa2a17 ("Manage: fix test for 'is array failed'.")
introduced a regression which would not allow to re-add new
drivers to a failed array.
The patch is written by Hannes Reinecke, Neil Brown points out
the buggy commit ID is d180d2aa2a17. Coly helps to submit the
patch to mdadm upstream.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Cc: Coly Li <colyli@suse.de>
Cc: Neil Brown <neilb@suse.com>
---
Manage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Manage.c b/Manage.c
index 7e1b94b..073ddb9 100644
--- a/Manage.c
+++ b/Manage.c
@@ -879,10 +879,10 @@ int Manage_add(int fd, int tfd, struct mddev_dev *dv,
continue;
if (disc.major == 0 && disc.minor == 0)
continue;
- found++;
if (!(disc.state & (1<<MD_DISK_SYNC)))
continue;
avail[disc.raid_disk] = 1;
+ found++;
}
array_failed = !enough(array->level, array->raid_disks,
array->layout, 1, avail);
--
2.6.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix regression during add devices
2016-03-09 5:20 [PATCH] Fix regression during add devices Coly Li
@ 2016-03-09 18:30 ` Jes Sorensen
2016-03-10 4:59 ` Coly Li
0 siblings, 1 reply; 4+ messages in thread
From: Jes Sorensen @ 2016-03-09 18:30 UTC (permalink / raw)
To: Coly Li; +Cc: linux-raid, Hannes Reinecke, Neil Brown
Coly Li <colyli@suse.de> writes:
> From: Hannes Reinecke <hare@suse.de>
>
> Commit d180d2aa2a17 ("Manage: fix test for 'is array failed'.")
> introduced a regression which would not allow to re-add new
> drivers to a failed array.
>
> The patch is written by Hannes Reinecke, Neil Brown points out
> the buggy commit ID is d180d2aa2a17. Coly helps to submit the
> patch to mdadm upstream.
>
> Signed-off-by: Hannes Reinecke <hare@suse.de>
> Cc: Coly Li <colyli@suse.de>
> Cc: Neil Brown <neilb@suse.com>
> ---
> Manage.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Coly,
Thanks for the fix - please use "Fixes: " to indicate which patch
introduced the bug, and the story of pushing the patch really belongs in
a comment below the --- line, so it doesn't go into git.
I modified it to look like this - please let me know if you are OK with
this.
Thanks,
Jes
commit 227bd322d3ed80bee0f1a0ae44a293908890851c
Author: Hannes Reinecke <hare@suse.de>
Date: Wed Mar 9 13:20:18 2016 +0800
Fix regression during add devices
Commit d180d2aa2a17 ("Manage: fix test for 'is array failed'.")
introduced a regression which would not allow to re-add new
drivers to a failed array.
Fixes: d180d2aa2a17 ("Manage: fix test for 'is array failed'.")
Signed-off-by: Hannes Reinecke <hare@suse.de>
Cc: Coly Li <colyli@suse.de>
Cc: Neil Brown <neilb@suse.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
> diff --git a/Manage.c b/Manage.c
> index 7e1b94b..073ddb9 100644
> --- a/Manage.c
> +++ b/Manage.c
> @@ -879,10 +879,10 @@ int Manage_add(int fd, int tfd, struct mddev_dev *dv,
> continue;
> if (disc.major == 0 && disc.minor == 0)
> continue;
> - found++;
> if (!(disc.state & (1<<MD_DISK_SYNC)))
> continue;
> avail[disc.raid_disk] = 1;
> + found++;
> }
> array_failed = !enough(array->level, array->raid_disks,
> array->layout, 1, avail);
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix regression during add devices
2016-03-09 18:30 ` Jes Sorensen
@ 2016-03-10 4:59 ` Coly Li
2016-03-10 16:44 ` Jes Sorensen
0 siblings, 1 reply; 4+ messages in thread
From: Coly Li @ 2016-03-10 4:59 UTC (permalink / raw)
To: Jes Sorensen; +Cc: linux-raid, Hannes Reinecke, Neil Brown
在 16/3/10 上午2:30, Jes Sorensen 写道:
> Coly Li <colyli@suse.de> writes:
>> From: Hannes Reinecke <hare@suse.de>
>>
>> Commit d180d2aa2a17 ("Manage: fix test for 'is array failed'.")
>> introduced a regression which would not allow to re-add new
>> drivers to a failed array.
>>
>> The patch is written by Hannes Reinecke, Neil Brown points out
>> the buggy commit ID is d180d2aa2a17. Coly helps to submit the
>> patch to mdadm upstream.
>>
>> Signed-off-by: Hannes Reinecke <hare@suse.de>
>> Cc: Coly Li <colyli@suse.de>
>> Cc: Neil Brown <neilb@suse.com>
>> ---
>> Manage.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Coly,
>
> Thanks for the fix - please use "Fixes: " to indicate which patch
> introduced the bug, and the story of pushing the patch really belongs in
> a comment below the --- line, so it doesn't go into git.
>
> I modified it to look like this - please let me know if you are OK with
> this.
>
> Thanks,
> Jes
>
Hi Jes,
It is OK to me, so I don't resend another fixed version.
Thanks for the fix up.
Coly
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix regression during add devices
2016-03-10 4:59 ` Coly Li
@ 2016-03-10 16:44 ` Jes Sorensen
0 siblings, 0 replies; 4+ messages in thread
From: Jes Sorensen @ 2016-03-10 16:44 UTC (permalink / raw)
To: Coly Li; +Cc: linux-raid, Hannes Reinecke, Neil Brown
Coly Li <colyli@suse.de> writes:
> 在 16/3/10 上午2:30, Jes Sorensen 写道:
>> Coly Li <colyli@suse.de> writes:
>>> From: Hannes Reinecke <hare@suse.de>
>>>
>>> Commit d180d2aa2a17 ("Manage: fix test for 'is array failed'.")
>>> introduced a regression which would not allow to re-add new
>>> drivers to a failed array.
>>>
>>> The patch is written by Hannes Reinecke, Neil Brown points out
>>> the buggy commit ID is d180d2aa2a17. Coly helps to submit the
>>> patch to mdadm upstream.
>>>
>>> Signed-off-by: Hannes Reinecke <hare@suse.de>
>>> Cc: Coly Li <colyli@suse.de>
>>> Cc: Neil Brown <neilb@suse.com>
>>> ---
>>> Manage.c | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> Coly,
>>
>> Thanks for the fix - please use "Fixes: " to indicate which patch
>> introduced the bug, and the story of pushing the patch really belongs in
>> a comment below the --- line, so it doesn't go into git.
>>
>> I modified it to look like this - please let me know if you are OK with
>> this.
>>
>> Thanks,
>> Jes
>>
>
> Hi Jes,
>
> It is OK to me, so I don't resend another fixed version.
> Thanks for the fix up.
Great, yes you're all set!
Cheers,
Jes
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-03-10 16:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-09 5:20 [PATCH] Fix regression during add devices Coly Li
2016-03-09 18:30 ` Jes Sorensen
2016-03-10 4:59 ` Coly Li
2016-03-10 16:44 ` Jes Sorensen
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).