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