Re: [PATCH 2/3] md: Set MD_BROKEN for RAID1 and RAID10
From: Song Liu <song@kernel.org>
Date: 2022-02-08 07:13:43
From: Song Liu <song@kernel.org>
Date: 2022-02-08 07:13:43
On Mon, Jan 31, 2022 at 1:06 AM Mariusz Tkaczyk [off-list ref] wrote:
Hi Xiao, Thanks for review. On Mon, 31 Jan 2022 16:29:27 +0800 Xiao Ni [off-list ref] wrote:quoted
quoted
+ if (test_bit(In_sync, &rdev->flags) && !mddev->fail_last_dev && !enough(conf, rdev->raid_disk)) {The check of mddev->fail_last_dev should be removed here.
I folded this change in.
Ohh, my bad. I mainly tested it on RAID1 and didn't notice it. Thanks!quoted
quoted
- /* - * Don't fail the drive, just return an IO error. - */It's the same. These comments can directly give people notes. raid10 will return bio here with an error. Is it better to keep them here?Sure, let wait for Song opinion first and then I will send v4.
I think the current comment (before the function) is good, so this is no longer needed. Thanks, Song