md/raid1: Avoid raid1 resync getting stuck
authorJes Sorensen <[email protected]>
Wed, 16 Sep 2015 14:20:05 +0000 (10:20 -0400)
committerNeilBrown <[email protected]>
Fri, 2 Oct 2015 07:23:44 +0000 (17:23 +1000)
commite8ff8bf09ff49733534ff3cee91bde030186055f
treea88b4a7f0d402a2aefeecc97b752c13e931874f6
parent644df1a85fc4b0c7a16800f55717261546f4e651
md/raid1: Avoid raid1 resync getting stuck

close_sync() needs to set conf->next_resync to a large, but safe value
below MaxSector and use it to determine whether or not to set
start_next_window in wait_barrier()

Solution suggested by Neil Brown.

Reported-by: Nate Dailey <[email protected]>
Tested-by: Xiao Ni <[email protected]>
Signed-off-by: Jes Sorensen <[email protected]>
Signed-off-by: NeilBrown <[email protected]>
drivers/md/raid1.c