Re: [PATCH v5 1/5] block/nbd: nbd_channel_error() shutdown channel unconditionally

2021-07-16 Thread Eric Blake
On Wed, Jul 14, 2021 at 07:59:12PM +0300, Vladimir Sementsov-Ogievskiy wrote: > Don't rely on connection being totally broken in case of -EIO. More > safe and correct just shutdown the channel anyway, as we change the > state and going to reconnect. > > Signed-off-by: Vladimir Sementsov-Ogievskiy

[PATCH v5 1/5] block/nbd: nbd_channel_error() shutdown channel unconditionally

2021-07-14 Thread Vladimir Sementsov-Ogievskiy
Don't rely on connection being totally broken in case of -EIO. More safe and correct just shutdown the channel anyway, as we change the state and going to reconnect. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/nbd.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff