I've cleaned up the first two patches I sent earlier:
[1 of 5] dm-raid-set-recovery-flags-on-resume.patch
[2 of 5] dm-raid-record-and-handle-missing-devices.patch
and added a couple more:
[3 of 5] dm-raid-need-safe-version-of-rdev_for_each.patch
[4 of 5] dm-raid-use-md_error-in-place-of-faulty-bit.patch
[5 of 5] md-raid1-further-conditionalize-fullsync.patch
Patch [5 of 5] I think needs some work. It fixes the problem I'm seeing
and seems to go along with similar logic used for RAID5 in commit
d6b212f4b19da5301e6b6eca562e5c7a2a6e8c8d. It also seems like a workable
solution based on the code surrounding commit
d30519fc59c5cc2f7772fa67b16b1a2426d36c95. Can you let me know if I'm
stretching the usage of 'saved_raid_disk' too far?
Thanks,
brassow
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
04-18-2012, 03:48 AM
NeilBrown
dm-raid: various bug fixes
On Tue, 17 Apr 2012 21:30:19 -0500 Jonathan Brassow <jbrassow@redhat.com>
wrote:
> Neil,
>
> I've cleaned up the first two patches I sent earlier:
> [1 of 5] dm-raid-set-recovery-flags-on-resume.patch
> [2 of 5] dm-raid-record-and-handle-missing-devices.patch
> and added a couple more:
> [3 of 5] dm-raid-need-safe-version-of-rdev_for_each.patch
> [4 of 5] dm-raid-use-md_error-in-place-of-faulty-bit.patch
> [5 of 5] md-raid1-further-conditionalize-fullsync.patch
>
> Patch [5 of 5] I think needs some work. It fixes the problem I'm seeing
> and seems to go along with similar logic used for RAID5 in commit
> d6b212f4b19da5301e6b6eca562e5c7a2a6e8c8d. It also seems like a workable
> solution based on the code surrounding commit
> d30519fc59c5cc2f7772fa67b16b1a2426d36c95. Can you let me know if I'm
> stretching the usage of 'saved_raid_disk' too far?
>
> Thanks,
> brassow
Thanks.
3-of-5 should go in 3.4 presumably. The rest wait for 3.5? Or do you think
they should be in 3.4?
5-of-5: Maybe it would make sense just to check if saved_raid_disk >= 0 ??
This is only relevant for dm-raid isn't it? I'd need to think through how
all that fits together again.
The rest are all fine and are in my for-next
Thanks,
NeilBrown
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
04-18-2012, 02:05 PM
Brassow Jonathan
dm-raid: various bug fixes
On Apr 17, 2012, at 10:48 PM, NeilBrown wrote:
> On Tue, 17 Apr 2012 21:30:19 -0500 Jonathan Brassow <jbrassow@redhat.com>
> wrote:
>
>> Neil,
>>
>> I've cleaned up the first two patches I sent earlier:
>> [1 of 5] dm-raid-set-recovery-flags-on-resume.patch
>> [2 of 5] dm-raid-record-and-handle-missing-devices.patch
>> and added a couple more:
>> [3 of 5] dm-raid-need-safe-version-of-rdev_for_each.patch
>> [4 of 5] dm-raid-use-md_error-in-place-of-faulty-bit.patch
>> [5 of 5] md-raid1-further-conditionalize-fullsync.patch
>>
>> Patch [5 of 5] I think needs some work. It fixes the problem I'm seeing
>> and seems to go along with similar logic used for RAID5 in commit
>> d6b212f4b19da5301e6b6eca562e5c7a2a6e8c8d. It also seems like a workable
>> solution based on the code surrounding commit
>> d30519fc59c5cc2f7772fa67b16b1a2426d36c95. Can you let me know if I'm
>> stretching the usage of 'saved_raid_disk' too far?
>>
>> Thanks,
>> brassow
>
> Thanks.
>
> 3-of-5 should go in 3.4 presumably. The rest wait for 3.5? Or do you think
> they should be in 3.4?
>
> 5-of-5: Maybe it would make sense just to check if saved_raid_disk >= 0 ??
>
> This is only relevant for dm-raid isn't it? I'd need to think through how
> all that fits together again.
>
> The rest are all fine and are in my for-next
Thanks Neil,
Yes, 3-of-5 should probably go in sooner rather than later. Waiting on the others shouldn't hurt.
5-of-5: changing the check to 'saved_raid_disk >= 0' would be fine, but I think I should initialize 'saved_raid_disk' to -1 in dm-raid.c then normally. Right now, an nominal initial value is not set - meaning it is '0'. (When a device comes back from a failure, 'saved_raid_disk' is assigned its old position.)
brassow
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
04-18-2012, 09:32 PM
Brassow Jonathan
dm-raid: various bug fixes
On Apr 18, 2012, at 9:05 AM, Brassow Jonathan wrote:
5-of-5: changing the check to 'saved_raid_disk >= 0' would be fine, but I think I should initialize 'saved_raid_disk' to -1 in dm-raid.c then normally. *Right now, an nominal initial value is not set - meaning it is '0'. *(When a device comes back from a failure, 'saved_raid_disk' is assigned its old position.)
... that's not quite right. *I do call 'md_rdev_init' which sets 'saved_raid_disk' to -1. *Then, if the device has returned after a disappearance, I set 'saved_raid_disk' to it's old position. *Therefore, 'saved_raid_disk >= 0' would be fine and wouldn't require me to set -1 in dm-raid.c.
*brassow
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
04-18-2012, 11:58 PM
NeilBrown
dm-raid: various bug fixes
On Wed, 18 Apr 2012 16:32:00 -0500 Brassow Jonathan <jbrassow@redhat.com>
wrote:
>
> On Apr 18, 2012, at 9:05 AM, Brassow Jonathan wrote:
>
> >
> > 5-of-5: changing the check to 'saved_raid_disk >= 0' would be fine, but I think I should initialize 'saved_raid_disk' to -1 in dm-raid.c then normally. Right now, an nominal initial value is not set - meaning it is '0'. (When a device comes back from a failure, 'saved_raid_disk' is assigned its old position.)
>
> ... that's not quite right. I do call 'md_rdev_init' which sets 'saved_raid_disk' to -1. Then, if the device has returned after a disappearance, I set 'saved_raid_disk' to it's old position. Therefore, 'saved_raid_disk >= 0' would be fine and wouldn't require me to set -1 in dm-raid.c.
>
> brassow
>
Excellent. I've taken the liberty of making that change in the patch you
sent me and converted your RFC-by: to Signed-off-by:
Please confirm that is OK to submit (eventually for 3.5).
Thanks,
NeilBrown
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
04-19-2012, 02:42 AM
Brassow Jonathan
dm-raid: various bug fixes
On Apr 18, 2012, at 6:58 PM, NeilBrown wrote:
> On Wed, 18 Apr 2012 16:32:00 -0500 Brassow Jonathan <jbrassow@redhat.com>
> wrote:
>
>>
>> On Apr 18, 2012, at 9:05 AM, Brassow Jonathan wrote:
>>
>>>
>>> 5-of-5: changing the check to 'saved_raid_disk >= 0' would be fine, but I think I should initialize 'saved_raid_disk' to -1 in dm-raid.c then normally. Right now, an nominal initial value is not set - meaning it is '0'. (When a device comes back from a failure, 'saved_raid_disk' is assigned its old position.)
>>
>> ... that's not quite right. I do call 'md_rdev_init' which sets 'saved_raid_disk' to -1. Then, if the device has returned after a disappearance, I set 'saved_raid_disk' to it's old position. Therefore, 'saved_raid_disk >= 0' would be fine and wouldn't require me to set -1 in dm-raid.c.
>>
>> brassow
>>
>
> Excellent. I've taken the liberty of making that change in the patch you
> sent me and converted your RFC-by: to Signed-off-by:
>
> Result can be viewed at or near the top of
>
> http://neil.brown.name/git?p=md;a=shortlog;h=refs/heads/for-next
>
> Please confirm that is OK to submit (eventually for 3.5).
Perfect, thank-you.
brassow
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel