]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zfs/zio.c
Make metaslab class rotor and aliquot per-allocator.
[mirror_zfs.git] / module / zfs / zio.c
index 982940dbd9b24616a361ff90979d749744c9a04e..ba438353a58741d3437537c734988619d1a7e77b 100644 (file)
@@ -2783,8 +2783,8 @@ zio_write_gang_block(zio_t *pio)
                ASSERT(has_data);
 
                flags |= METASLAB_ASYNC_ALLOC;
-               VERIFY(zfs_refcount_held(&mc->mc_alloc_slots[pio->io_allocator],
-                   pio));
+               VERIFY(zfs_refcount_held(&mc->mc_allocator[pio->io_allocator].
+                   mca_alloc_slots, pio));
 
                /*
                 * The logical zio has already placed a reservation for
@@ -4468,9 +4468,8 @@ zio_done(zio_t *zio)
 
                metaslab_group_alloc_verify(zio->io_spa, zio->io_bp, zio,
                    zio->io_allocator);
-               VERIFY(zfs_refcount_not_held(
-                   &zio->io_metaslab_class->mc_alloc_slots[zio->io_allocator],
-                   zio));
+               VERIFY(zfs_refcount_not_held(&zio->io_metaslab_class->
+                   mc_allocator[zio->io_allocator].mca_alloc_slots, zio));
        }