]> granicus.if.org Git - zfs/commitdiff
Use KM_PUSHPAGE in spa_add() for spa_label_features.
authorTim Chase <tim@chase2k.com>
Sat, 8 Mar 2014 23:01:16 +0000 (17:01 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 10 Mar 2014 16:09:30 +0000 (09:09 -0700)
The spa_label_features nvlist is used in the sync context during pool
version upgrade.

Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2168

module/zfs/spa_misc.c

index 58c4e67bd1b1549ebe06caf1b6ee739007a9da95..f1e1a7258e7011254cb7ed70ae1dd581dee25cc0 100644 (file)
@@ -542,7 +542,7 @@ spa_add(const char *name, nvlist_t *config, const char *altroot)
 
        if (spa->spa_label_features == NULL) {
                VERIFY(nvlist_alloc(&spa->spa_label_features, NV_UNIQUE_NAME,
-                   KM_SLEEP) == 0);
+                   KM_PUSHPAGE) == 0);
        }
 
        spa->spa_debug = ((zfs_flags & ZFS_DEBUG_SPA) != 0);