[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-raid
Subject: [PATCH 07/12] Grow: fix switching on PPL during recovery
From: Pawel Baldysiak <pawel.baldysiak () intel ! com>
Date: 2017-09-28 12:41:13
Message-ID: 20170928124118.23361-8-pawel.baldysiak () intel ! com
[Download RAW message or body]
If raid memeber is not in sync - it is skipped during
enablement of PPL. This is not correct, since the drive that
we are currently recovering to does not have ppl_size and ppl_sector
properly set in sysfs.
Remove this skipping, so all drives are updated during turning on the PPL.
Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
---
Grow.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/Grow.c b/Grow.c
index 534ba801..1d33a4eb 100644
--- a/Grow.c
+++ b/Grow.c
@@ -637,9 +637,6 @@ int Grow_consistency_policy(char *devname, int fd, struct context *c, struct sha
int dfd;
char *devpath;
- if ((sd->disk.state & (1 << MD_DISK_SYNC)) == 0)
- continue;
-
devpath = map_dev(sd->disk.major, sd->disk.minor, 0);
dfd = dev_open(devpath, O_RDWR);
if (dfd < 0) {
--
2.13.5
--
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic