Page MenuHomeFreeBSD

D57719.id180205.diff
No OneTemporary

D57719.id180205.diff

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

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)

Event Timeline