On Sun, Feb 20, 2022 at 02:14:02PM +0200, Nir Soffer wrote:
 +static inline void
 +increase_queue_size(struct worker *worker, size_t len) 
                      ^ space
and the same in the next function:
 +{
 +  worker->queue_size += len;
 +}
 +
 +static inline void
 +decrease_queue_size(struct worker *worker, size_t len)
 +{
 +  assert (worker->queue_size >= len);
 +  worker->queue_size -= len;
 +} 
Do we not need any locking here?
Rich.
-- 
Richard Jones, Virtualization Group, Red Hat 
http://people.redhat.com/~rjones
Read my programming and virtualization blog: 
http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  
http://libguestfs.org