aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2020-12-02 13:20:02 -0500
committerGitHub <[email protected]>2020-12-02 10:20:02 -0800
commit0aacde2e9a818942f4e25ab765b3a4849aac6de8 (patch)
treeec4fee617881dfa98eeecb46539f6c7184b4ad7e /module
parentec50cd24ba6fd3656229dbbcb78a665197597c91 (diff)
FreeBSD: notify userspace when a vdev is removed
This is needed for zfsd to autoreplace vdevs. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #11260
Diffstat (limited to 'module')
-rw-r--r--module/zfs/spa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/zfs/spa.c b/module/zfs/spa.c
index ae8964e6f..65c907d9d 100644
--- a/module/zfs/spa.c
+++ b/module/zfs/spa.c
@@ -7974,6 +7974,9 @@ spa_async_remove(spa_t *spa, vdev_t *vd)
vd->vdev_stat.vs_checksum_errors = 0;
vdev_state_dirty(vd->vdev_top);
+
+ /* Tell userspace that the vdev is gone. */
+ zfs_post_remove(spa, vd);
}
for (int c = 0; c < vd->vdev_children; c++)