HomeFreeBSD

Fix sequential resilver drive failure race condition

Description

Fix sequential resilver drive failure race condition

This patch handles the race condition on simultaneous failure of
2 drives, which misses the vdev_rebuild_reset_wanted signal in
vdev_rebuild_thread. We retry to catch this inside the
vdev_rebuild_complete_sync function.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Dipak Ghosh <dipak.ghosh@hpe.com>
Reviewed-by: Akash B <akash-b@hpe.com>
Signed-off-by: Samuel Wycliffe J <samwyc@hpe.com>
Closes #14041
Closes #14050

Details

Provenance
samwyc <115969550+samwyc@users.noreply.github.com>Authored on Oct 19 2022, 10:48 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 21 2022, 9:05 PM
Parents
rG779597568173: contrib: dracut: zfs-snapshot-bootfs: exit status fix
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGfc1c0053f9c6: Fix sequential resilver drive failure race condition (authored by samwyc <115969550+samwyc@users.noreply.github.com>).Oct 21 2022, 9:05 PM