summaryrefslogtreecommitdiffstats
path: root/include/sys
diff options
context:
space:
mode:
authorChunwei Chen <[email protected]>2014-05-13 10:36:35 +0800
committerBrian Behlendorf <[email protected]>2014-05-14 16:20:21 -0700
commitbc25c9325b0e5ced897b9820dad239539d561ec9 (patch)
treedd7a9bf76d0f0aa232ce2eaaa61c083a5238edc9 /include/sys
parent2c33b9127569ad62b4cfe7dd4f651ceeee3d005c (diff)
Use a dedicated taskq for vdev_file
Originally, vdev_file used system_taskq. This would cause a deadlock, especially on system with few CPUs. The reason is that the prefetcher threads, which are on system_taskq, will sometimes be blocked waiting for I/O to finish. If the prefetcher threads consume all the tasks in system_taskq, the I/O cannot be served and thus results in a deadlock. We fix this by creating a dedicated vdev_file_taskq for vdev_file I/O. Signed-off-by: Chunwei Chen <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #2270
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/vdev_file.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sys/vdev_file.h b/include/sys/vdev_file.h
index b4d40f9df..cf38a86af 100644
--- a/include/sys/vdev_file.h
+++ b/include/sys/vdev_file.h
@@ -39,6 +39,9 @@ typedef struct vdev_file {
vnode_t *vf_vnode;
} vdev_file_t;
+extern void vdev_file_init(void);
+extern void vdev_file_fini(void);
+
#ifdef __cplusplus
}
#endif