]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linux: zvol: avoid heap allocation for zvol_request_sync=1
authorChristian Schwarz <me@cschwarz.com>
Wed, 3 Mar 2021 16:15:28 +0000 (17:15 +0100)
committerGitHub <noreply@github.com>
Wed, 3 Mar 2021 16:15:28 +0000 (08:15 -0800)
commite439ee83c1316b58d480148c9c851f42c1458305
treef42344ef9b355b258a0f3ed097f8ddb36d859b37
parent3242b5358ea816909b3ade995cf95007f181b280
linux: zvol: avoid heap allocation for zvol_request_sync=1

The spl_kmem_alloc showed up in some flamegraphs in a single-threaded
4k sync write workload at 85k IOPS on an
Intel(R) Xeon(R) Silver 4215 CPU @ 2.50GHz.
Certainly not a huge win but I believe the change is clean and
easy to maintain down the road.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: Christian Schwarz <me@cschwarz.com>
Closes #11666
module/os/linux/zfs/zvol_os.c