Skip to content

RFC md/raid1: data corruption with serialization

Xiao Ni linux-raid 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3md: add return value of mddev_create_serial_pooldrivers/md/md-bitmap.c drivers/md/md.c drivers/md/md.h+44 -160 replies
2/3md/raid1: fix data corruption by moving serialization to mddev leveldrivers/md/md.c drivers/md/md.h drivers/md/raid1.c+71 -1450 replies
3/3md/raid1: fix incorrect sector range in serializationdrivers/md/raid1.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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)