[dm-devel] [PATCH 08/12] RAID 4/5/6: Indicate parity blocks as 'META'
Shaun Tancheff
shaun at tancheff.com
Mon Apr 4 05:06:12 UTC 2016
From: Shaun Tancheff <shaun.tancheff at seagate.com>
It is useful for ZDM to know that a block is part of a parity stripe
as parity stripes are deemed to be hotter and more prone to becoming
stale. ZDM will co-locate META bios to alternate streams.
Signed-off-by: Shaun Tancheff <shaun.tancheff at seagate.com>
---
drivers/md/raid5.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index b4f02c9..c96655e 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -937,6 +937,8 @@ again:
rrdev = NULL;
}
if (rw & WRITE) {
+ if (i == sh->pd_idx || i == sh->qd_idx)
+ rw |= REQ_META;
if (replace_only)
rdev = NULL;
if (rdev == rrdev)
--
1.9.1
More information about the dm-devel
mailing list