Re: [Qemu-devel] [PATCH for 2.10] block/nbd-client: always return EIO on and after the first io channel error

2017-08-08 Thread Vladimir Sementsov-Ogievskiy
08.08.2017 17:44, Eric Blake wrote: On 08/08/2017 09:29 AM, Vladimir Sementsov-Ogievskiy wrote: Do not communicate after the first error to avoid communicating throught broken channel. The only exclusion is try to send NBD_CMD_DISC anyway on in nbd_client_close. Signed-off-by: Vladimir Sementso

Re: [Qemu-devel] [PATCH for 2.10] block/nbd-client: always return EIO on and after the first io channel error

2017-08-08 Thread Eric Blake
On 08/08/2017 09:29 AM, Vladimir Sementsov-Ogievskiy wrote: > Do not communicate after the first error to avoid communicating throught > broken channel. The only exclusion is try to send NBD_CMD_DISC anyway on > in nbd_client_close. > > Signed-off-by: Vladimir Sementsov-Ogievskiy > --- > > Hi al

Re: [Qemu-devel] [PATCH for 2.10] block/nbd-client: always return EIO on and after the first io channel error

2017-08-08 Thread Vladimir Sementsov-Ogievskiy
08.08.2017 17:29, Vladimir Sementsov-Ogievskiy wrote: Do not communicate after the first error to avoid communicating throught broken channel. The only exclusion is try to send NBD_CMD_DISC anyway on in nbd_client_close. worth add: To simplify things, return -EIO in case of disconnect too. (re