From 8fa5250f5d779e577406c581fc2d7fbf0baceea5 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Tue, 2 May 2017 17:37:14 -0700 Subject: [PATCH] Default to zvol_request_async=0 Change the default ZVOL behavior so requests are handled asynchronously. This behavior is functionally the same as in the zfs-0.6.4 release. Reviewed-by: Chunwei Chen Signed-off-by: Brian Behlendorf Issue #5902 --- man/man5/zfs-module-parameters.5 | 2 +- module/zfs/zvol.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/man/man5/zfs-module-parameters.5 b/man/man5/zfs-module-parameters.5 index 2fbab1d01..51f1cd93f 100644 --- a/man/man5/zfs-module-parameters.5 +++ b/man/man5/zfs-module-parameters.5 @@ -2060,7 +2060,7 @@ effectively limits the queue depth to 1 for each I/O submitter. When set to 0 requests are handled asynchronously by a thread pool. The number of requests which can be handled concurrently is controller by \fBzvol_threads\fR. .sp -Default value: \fB1\fR. +Default value: \fB0\fR. .RE .sp diff --git a/module/zfs/zvol.c b/module/zfs/zvol.c index fef1d299a..6cd366602 100644 --- a/module/zfs/zvol.c +++ b/module/zfs/zvol.c @@ -57,7 +57,7 @@ unsigned int zvol_inhibit_dev = 0; unsigned int zvol_major = ZVOL_MAJOR; unsigned int zvol_threads = 32; -unsigned int zvol_request_sync = 1; +unsigned int zvol_request_sync = 0; unsigned int zvol_prefetch_bytes = (128 * 1024); unsigned long zvol_max_discard_blocks = 16384;