render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
4372d3
From 44f83782ba882f9eb037a54fb75231c305d98712 Mon Sep 17 00:00:00 2001
4372d3
Message-Id: <44f83782ba882f9eb037a54fb75231c305d98712@dist-git>
4372d3
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
4372d3
Date: Fri, 10 Jun 2022 15:25:00 +0200
4372d3
Subject: [PATCH] qemu: virtiofs: format --thread-pool-size
4372d3
MIME-Version: 1.0
4372d3
Content-Type: text/plain; charset=UTF-8
4372d3
Content-Transfer-Encoding: 8bit
4372d3
4372d3
https://bugzilla.redhat.com/show_bug.cgi?id=2079582
4372d3
4372d3
Signed-off-by: Ján Tomko <jtomko@redhat.com>
4372d3
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
4372d3
(cherry picked from commit 2753eba20ce76d3d8785b23a6e940574ca12fe3c)
4372d3
Signed-off-by: Ján Tomko <jtomko@redhat.com>
4372d3
---
4372d3
 src/qemu/qemu_virtiofs.c | 4 ++++
4372d3
 1 file changed, 4 insertions(+)
4372d3
4372d3
diff --git a/src/qemu/qemu_virtiofs.c b/src/qemu/qemu_virtiofs.c
4372d3
index 1b853a5a59..1ee3781286 100644
4372d3
--- a/src/qemu/qemu_virtiofs.c
4372d3
+++ b/src/qemu/qemu_virtiofs.c
4372d3
@@ -163,6 +163,10 @@ qemuVirtioFSBuildCommandLine(virQEMUDriverConfig *cfg,
4372d3
         virBufferAddLit(&opts, ",no_posix_lock");
4372d3
 
4372d3
     virCommandAddArgBuffer(cmd, &opts);
4372d3
+
4372d3
+    if (fs->thread_pool_size >= 0)
4372d3
+        virCommandAddArgFormat(cmd, "--thread-pool-size=%i", fs->thread_pool_size);
4372d3
+
4372d3
     if (cfg->virtiofsdDebug)
4372d3
         virCommandAddArg(cmd, "-d");
4372d3
 
4372d3
-- 
4372d3
2.35.1
4372d3