changeset 12600:25763e25fe19

6951283 hotspare_import_001_pos FAILs unless doing a sync before detach
author Lin Ling <Lin.Ling@Sun.COM>
date Thu, 10 Jun 2010 11:29:20 -0700
parents e591a2c08558
children 3fd4339427c7
files usr/src/uts/common/fs/zfs/spa.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/fs/zfs/spa.c	Fri Jun 11 02:46:05 2010 +0530
+++ b/usr/src/uts/common/fs/zfs/spa.c	Thu Jun 10 11:29:20 2010 -0700
@@ -3228,6 +3228,8 @@
 		return (error);
 	}
 
+	spa_async_resume(spa);
+
 	/*
 	 * Override any spares and level 2 cache devices as specified by
 	 * the user, as these may have correct device names/devids, etc.
@@ -3278,8 +3280,6 @@
 		spa_config_update(spa, SPA_CONFIG_UPDATE_POOL);
 	}
 
-	spa_async_resume(spa);
-
 	/*
 	 * It's possible that the pool was expanded while it was exported.
 	 * We kick off an async task to handle this for us.