md/raid1: Avoid raid1 resync getting stuck
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 16 Sep 2015 14:20:05 +0000 (10:20 -0400)
committerNeilBrown <neilb@suse.com>
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 <nate.dailey@stratus.com>
Tested-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/raid1.c