]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9008fff945ba85f0899520cf38e338b939b9f47d
treeb309aa7ea7f89b1aecdb44844cb1d3a75daecbcf
parent59ac9f71a970d56b021759864a8ab423e32eabbc
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