Skip to content

Fix raid1 resync getting stuck

[email protected] linux-raid 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/1md/raid1: Avoid raid1 resync getting stuckdrivers/md/raid1.c+2 -31 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/1] Fix raid1 resync getting stuck

From: Jes Sorensen <[email protected]>

Neil,

This patch seems to do the job for us. Nate ran testing with > 500 iterations which would normally fail in less than 10.

I tried changing MaxSector to ((~(sector_t)0) >> 1) as you suggested, but that made the raid5 code go explosive. This on the other hand seems to do the trick.

Cheers,
Jes

Jes Sorensen (1):
md/raid1: Avoid raid1 resync getting stuck

 drivers/md/raid1.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Signature · 1 line
2.4.3