Re: [Libguestfs] [nbdkit PATCH v2 2/2] nbd: Split reading into separate thread

2017-11-16 Thread Eric Blake
On 11/14/2017 01:23 PM, Eric Blake wrote: > In preparation for allowing interleaved response, refactor the > nbd forwarder so that writes are still done from the thread > handling the original request from the client, but all reads are > done by a dedicated reader thread. Control between the two >

[Libguestfs] [nbdkit PATCH v2 2/2] nbd: Split reading into separate thread

2017-11-14 Thread Eric Blake
In preparation for allowing interleaved response, refactor the nbd forwarder so that writes are still done from the thread handling the original request from the client, but all reads are done by a dedicated reader thread. Control between the two flags is gated by a mutex for storing the transacti