Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167908369
D57719.id180205.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
772 B
Referenced Files
None
Subscribers
None
D57719.id180205.diff
View Options
diff --git a/sys/contrib/openzfs/module/zfs/vdev.c b/sys/contrib/openzfs/module/zfs/vdev.c
--- a/sys/contrib/openzfs/module/zfs/vdev.c
+++ b/sys/contrib/openzfs/module/zfs/vdev.c
@@ -1739,11 +1739,12 @@
/*
* The metaslab was marked as dirty at the end of
* metaslab_init(). Remove it from the dirty list so that we
- * can uninitialize and reinitialize it to the new class.
+ * can uninitialize and reinitialize it to the new class. On a
+ * read-write load it may be dirty in any txg slot, so clear all.
*/
- if (txg != 0) {
+ for (int t = 0; t < TXG_SIZE; t++) {
(void) txg_list_remove_this(&vd->vdev_ms_list,
- slog_ms, txg);
+ slog_ms, t);
}
uint64_t sm_obj = space_map_object(slog_ms->ms_sm);
metaslab_fini(slog_ms);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 26, 9:26 AM (19 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34163412
Default Alt Text
D57719.id180205.diff (772 B)
Attached To
Mode
D57719: zfs: cleanup metaslabs across txgs
Attached
Detach File
Event Timeline
Log In to Comment