OSDN Git Service

md/raid10: avoid deadlock on recovery.
authorVitaly Mayatskikh <vmayatskikh@digitalocean.com>
Tue, 3 Mar 2020 18:14:40 +0000 (13:14 -0500)
committerSong Liu <songliubraving@fb.com>
Wed, 22 Jul 2020 18:44:54 +0000 (11:44 -0700)
commitfe630de009d0729584d79c78f43121e07c745fdc
treeb309aa7ea7f89b1aecdb44844cb1d3a75daecbcf
parentc333f9495c451d958c6f4a41e5de2d8f80f79496
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>
drivers/md/raid10.c