]> www.infradead.org Git - users/jedix/linux-maple.git/commit
md/raid1: Avoid raid1 resync getting stuck
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 16 Sep 2015 14:20:05 +0000 (10:20 -0400)
committerBrian Maly <brian.maly@oracle.com>
Tue, 28 Aug 2018 19:07:02 +0000 (15:07 -0400)
commit487445f837e146d7bec791b8ddb5ad6e92626a56
tree476bc6ca7f8ef5ace47f1680dd0c2d6910ca2074
parentb7758cb44bb0a667336b576908682c0eae4cb0af
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>
(cherry picked from commit e8ff8bf09ff49733534ff3cee91bde030186055f)

Orabug: 28529228

Signed-off-by: Jianchao Wang <jianchao.w.wang@oracle.com>
Reviewed-by: Ashish Samant <ashish.samant@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/md/raid1.c