]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Suppress 'vdev_metaslab_init' memory warning
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 27 Apr 2011 16:32:51 +0000 (09:32 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 27 Apr 2011 16:35:18 +0000 (09:35 -0700)
The vdev_metaslab_init() function has been observed to allocate
larger than 8k chunks.  However, they are not much larger than 8k
and it does this infrequently so it is allowed and the warning is
supressed.

module/zfs/vdev.c

index 4bed646b36975f994977b55649ab5a78339e4100..92f67ba4b18fbef5f9ff8cb350f1127b8ae6ebcd 100644 (file)
@@ -833,7 +833,7 @@ vdev_metaslab_init(vdev_t *vd, uint64_t txg)
 
        ASSERT(oldc <= newc);
 
-       mspp = kmem_zalloc(newc * sizeof (*mspp), KM_SLEEP);
+       mspp = kmem_zalloc(newc * sizeof (*mspp), KM_SLEEP | KM_NODEBUG);
 
        if (oldc != 0) {
                bcopy(vd->vdev_ms, mspp, oldc * sizeof (*mspp));