commit | fe630de009d0729584d79c78f43121e07c745fdc | [log] [tgz] |
---|---|---|
author | Vitaly Mayatskikh <vmayatskikh@digitalocean.com> | Tue Mar 03 13:14:40 2020 -0500 |
committer | Song Liu <songliubraving@fb.com> | Wed Jul 22 11:44:54 2020 -0700 |
tree | b309aa7ea7f89b1aecdb44844cb1d3a75daecbcf | |
parent | c333f9495c451d958c6f4a41e5de2d8f80f79496 [diff] |
md/raid10: avoid deadlock on recovery. When disk failure happens and the array has a spare drive, resync thread kicks in and starts to refill the spare. However it may get blocked by a retry thread that resubmits failed IO to a mirror and itself can get blocked on a barrier raised by the resync thread. Acked-by: Nigel Croxon <ncroxon@redhat.com> Signed-off-by: Vitaly Mayatskikh <vmayatskikh@digitalocean.com> Signed-off-by: Song Liu <songliubraving@fb.com>