]> git.proxmox.com Git - mirror_zfs.git/commit
Cancel in-progress rebuilds when we finish removal
authorPaul Dagnelie <paul.dagnelie@delphix.com>
Wed, 25 May 2022 16:25:13 +0000 (09:25 -0700)
committerGitHub <noreply@github.com>
Wed, 25 May 2022 16:25:13 +0000 (09:25 -0700)
commit7829b465a7f736e9458257fcb9dcefd8eb882ee0
treea23f0c052c3203777afa7cd679da4c8a97f6a631
parentb37093a188d94279e5e2faaf09e6ff754873b0a2
Cancel in-progress rebuilds when we finish removal

This issue was discovered by zloop runs. When a mirror or other
redundant top-level vdev has a disk failure, and the disk is replaced,
the rebuild process occurs. A removal can happen while this is in
progress. If the removal completes before the rebuild does, the
removal process will try to free the vdev that is still in use.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
Closes #13498
module/zfs/vdev_removal.c