runtime-rs: fix number of queues handling in dragonball share fs device

Looks like a copy/paste error...

Fixes #7501

Signed-off-by: Pavel Mores <pmores@redhat.com>
This commit is contained in:
Pavel Mores 2023-07-31 16:43:54 +02:00
parent ff8d7e7e41
commit 28e5e9c86e

View File

@ -311,7 +311,7 @@ impl DragonballInner {
sock_path: config.sock_path.clone(),
tag: config.mount_tag.clone(),
num_queues: if config.queue_num > 0 {
config.queue_size as usize
config.queue_num as usize
} else {
DEFAULT_VIRTIO_FS_NUM_QUEUES as usize
},