RFC md/raid1: data corruption with serialization
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | md: add return value of mddev_create_serial_pooldrivers/ drivers/ drivers/ | +44 | 0 replies | |
| 2/3 | md/raid1: fix data corruption by moving serialization to mddev leveldrivers/ drivers/ drivers/ | +71 | 0 replies | |
| 3/3 | md/raid1: fix incorrect sector range in serializationdrivers/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH RFC 0/3] md/raid1: data corruption with serialization
A data corruption can happen when using serialization for raid1. Serialization is not enabled by default. But it looks like there is a data corruption risk if serialization is closed. Because the lower driver can't guarantee the sequence which io is written first. So it's possible that different member disks will have different data for nvme devices. This patch set doesn't open serialization by default.
Xiao Ni (3):
md: add return value of mddev_create_serial_pool md/raid1: fix data corruption by moving serialization to mddev level md/raid1: fix incorrect sector range in serialization
drivers/md/md-bitmap.c | 28 +++++-- drivers/md/md.c | 171 ++++++++++++++--------------------------- drivers/md/md.h | 30 ++++---- drivers/md/raid1.c | 47 ++++++----- 4 files changed, 115 insertions(+), 161 deletions(-)
Signature · 1 line
2.50.1 (Apple Git-155)