From: Brian Behlendorf Date: Wed, 3 May 2017 00:37:14 +0000 (-0700) Subject: Default to zvol_request_async=0 X-Git-Tag: zfs-0.7.0-rc4~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8fa5250f5d779e577406c581fc2d7fbf0baceea5;p=zfs 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 --- 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;