summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-02-18 11:35:14 +1100
committerLuis Henriques <luis.henriques@canonical.com>2015-03-02 15:04:30 +0000
commitdae27fb6ff12f3fb1599343ebc0372db324b2ad3 (patch)
tree1f04605ff41ea670db54da89b0e624ff6dd82f55 /kernel
parentb4fe5e2d8a3be042e4ef3b5f9f3ccefc7612ddb7 (diff)
md/raid5: Fix livelock when array is both resyncing and degraded.
commit 26ac107378c4742978216be1005b7291b799c7b2 upstream. Commit a7854487cd7128a30a7f4f5259de9f67d5efb95f: md: When RAID5 is dirty, force reconstruct-write instead of read-modify-write. Causes an RCW cycle to be forced even when the array is degraded. A degraded array cannot support RCW as that requires reading all data blocks, and one may be missing. Forcing an RCW when it is not possible causes a live-lock and the code spins, repeatedly deciding to do something that cannot succeed. So change the condition to only force RCW on non-degraded arrays. Reported-by: Manibalan P <pmanibalan@amiindia.co.in> Bisected-by: Jes Sorensen <Jes.Sorensen@redhat.com> Tested-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de> Fixes: a7854487cd7128a30a7f4f5259de9f67d5efb95f Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions