[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-raid
Subject: [PATCH 10/12] imsm: always do ppl recovery when starting a rebuilding array
From: Pawel Baldysiak <pawel.baldysiak () intel ! com>
Date: 2017-09-28 12:41:16
Message-ID: 20170928124118.23361-11-pawel.baldysiak () intel ! com
[Download RAW message or body]
From: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Set resync_start to 0 when starting a rebuilding array to make the
kernel perform ppl recovery before the rebuild.
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
---
super-intel.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/super-intel.c b/super-intel.c
index 2e8eb0d4..56c60423 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -7756,6 +7756,9 @@ static struct mdinfo *container_content_imsm(struct supertype *st, char *subarra
map->blocks_per_strip;
info_d->ppl_sector = this->ppl_sector;
info_d->ppl_size = this->ppl_size;
+ if (this->consistency_policy == CONSISTENCY_POLICY_PPL &&
+ recovery_start == 0)
+ this->resync_start = 0;
} else {
info_d->component_size = blocks_per_member(map);
}
--
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