Re: [Qemu-block] [PATCH v3 10/11] block/nbd-client: nbd reconnect

2018-06-12 Thread Vladimir Sementsov-Ogievskiy
09.06.2018 18:32, Vladimir Sementsov-Ogievskiy wrote: Implement reconnect. To achieve this: 1. Move from quit bool variable to state. 4 states are introduced: connecting-wait: means, that reconnecting is in progress, and there were small number of reconnect attempts, so all requests

Re: [Qemu-block] [PATCH v3 10/11] block/nbd-client: nbd reconnect

2018-06-12 Thread Vladimir Sementsov-Ogievskiy
09.06.2018 18:32, Vladimir Sementsov-Ogievskiy wrote: Implement reconnect. To achieve this: 1. Move from quit bool variable to state. 4 states are introduced: connecting-wait: means, that reconnecting is in progress, and there were small number of reconnect attempts, so all requests

[Qemu-block] [PATCH v3 10/11] block/nbd-client: nbd reconnect

2018-06-09 Thread Vladimir Sementsov-Ogievskiy
Implement reconnect. To achieve this: 1. Move from quit bool variable to state. 4 states are introduced: connecting-wait: means, that reconnecting is in progress, and there were small number of reconnect attempts, so all requests are waiting for the connection. connecting-nowait: