mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
md/raid5: Fix livelock when array is both resyncing and degraded.
commit26ac107378upstream. Commita7854487cd: 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:a7854487cdSigned-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
parent
b4fe5e2d8a
commit
dae27fb6ff
1 changed files with 2 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue