aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/spa_misc.c
diff options
context:
space:
mode:
authorChunwei Chen <[email protected]>2016-12-21 10:47:15 -0800
committerBrian Behlendorf <[email protected]>2016-12-21 10:47:15 -0800
commitda8f51e16aa4e1832f8c1a9ddc3082e4469b4485 (patch)
treeafa7bb50215497f1bddfcfcfc71b95cb97ef428f /module/zfs/spa_misc.c
parent5f1346c29997dd4e02acf4c19c875d5484f33b1e (diff)
Use a dedicated taskq for vdev_file
The introduction of parallel zvol prefetch causes deadlock when using vdev_file. spa_async->(spa_namespace_lock)->txg_wait_synced->(wait for txg_sync) txg_sync->zio_wait->(wait for vdev_file_io_fsync on system_taskq) zvol_prefetch_minors_impl (on system_taskq)->spa_open_common->(wait for spa_namespace_lock) We fix this by using dedicated taskq for vdev_file. This same change was originally made in commit bc25c93 but reverted in commit aa9af22 when dynamic taskqs were added. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Chunwei Chen <[email protected]> Closes #5506 Closes #5495
Diffstat (limited to 'module/zfs/spa_misc.c')
-rw-r--r--module/zfs/spa_misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/zfs/spa_misc.c b/module/zfs/spa_misc.c
index b022c236b..73f40a583 100644
--- a/module/zfs/spa_misc.c
+++ b/module/zfs/spa_misc.c
@@ -1839,6 +1839,7 @@ spa_init(int mode)
zil_init();
vdev_cache_stat_init();
vdev_raidz_math_init();
+ vdev_file_init();
zfs_prop_init();
zpool_prop_init();
zpool_feature_init();
@@ -1853,6 +1854,7 @@ spa_fini(void)
spa_evict_all();
+ vdev_file_fini();
vdev_cache_stat_fini();
vdev_raidz_math_fini();
zil_fini();