Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105775921
D4902.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1003 B
Referenced Files
None
Subscribers
None
D4902.diff
View Options
Index: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c
===================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c
@@ -5952,6 +5952,8 @@
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++)
Index: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
===================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
@@ -160,7 +160,6 @@
* async removal support to invoke a close on this
* vdev once it is safe to do so.
*/
- zfs_post_remove(vd->vdev_spa, vd);
vd->vdev_remove_wanted = B_TRUE;
spa_async_request(vd->vdev_spa, SPA_ASYNC_REMOVE);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 12:57 PM (17 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15541559
Default Alt Text
D4902.diff (1003 B)
Attached To
Mode
D4902: Fix race condition involving ZFS remove events
Attached
Detach File
Event Timeline
Log In to Comment