Merge pull request #7500 from pmores/fix-queue-num-in-dragonball-share-fs

fix number of queues handling in dragonball share fs device
This commit is contained in:
Chao Wu 2023-08-08 12:07:25 +08:00 committed by GitHub
commit 24bf637835
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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