virtio-devices: fs: Reduce minimal amount of enabled queues to 1

It's not mandatory for the virtio-fs driver to enable all virtqueues
provided by the backend since all it needs is one request queue to work
correctly. Therefore we lower the minimal amount of enabled queues to 1.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2022-07-19 09:37:37 +02:00
parent 3083da154e
commit e1a63822fa

View File

@ -333,7 +333,7 @@ impl Fs {
device_type: VirtioDeviceType::Fs as u32,
queue_sizes: vec![queue_size; num_queues],
paused_sync: Some(Arc::new(Barrier::new(2))),
min_queues: DEFAULT_QUEUE_NUMBER as u16,
min_queues: 1,
..Default::default()
},
vu_common: VhostUserCommon {
@ -413,7 +413,7 @@ impl Fs {
acked_features: acked_features & VhostUserVirtioFeatures::PROTOCOL_FEATURES.bits(),
queue_sizes: vec![queue_size; num_queues],
paused_sync: Some(Arc::new(Barrier::new(2))),
min_queues: DEFAULT_QUEUE_NUMBER as u16,
min_queues: 1,
..Default::default()
},
vu_common: VhostUserCommon {