[Libguestfs] [PATCH nbdkit] New plugin: blkio [incomplete]
Alberto Faria
afaria at redhat.com
Sun Jan 8 20:14:13 UTC 2023
> (5) "The application is responsible for thread-safety. No thread
> synchronization is necessary when a queue is only used from a single
> thread. Proper synchronization is required when sharing a queue
> between multiple threads."
>
> Does this apply across multiple struct blkio handles? ie. Is there
> now, or could there be in future, some global state which would be
> corrupted by parallel calls across multiple handles?
There will never be any need to synchronize accesses to separate blkio
instances. We will clarify this in the docs.
Alberto
> This matters because we could use NBDKIT_THREAD_MODEL_SERIALIZE_REQUESTS
> instead of NBDKIT_THREAD_MODEL_SERIALIZE_ALL_REQUESTS
> (https://libguestfs.org/nbdkit-plugin.3.html#Threads).
More information about the Libguestfs
mailing list