diff options
author | Vladimir Sementsov-Ogievskiy | 2021-09-02 12:38:01 +0200 |
---|---|---|
committer | Eric Blake | 2021-09-29 20:46:33 +0200 |
commit | cb116da7d722f1c5fbb32c818817aef0f576772d (patch) | |
tree | 9a0c1bf53cd015f64d96f3318b6b9c1872a256a6 /hw/misc/macio | |
parent | nbd/client-connection: nbd_co_establish_connection(): fix non set errp (diff) | |
download | qemu-cb116da7d722f1c5fbb32c818817aef0f576772d.tar.gz qemu-cb116da7d722f1c5fbb32c818817aef0f576772d.tar.xz qemu-cb116da7d722f1c5fbb32c818817aef0f576772d.zip |
block/nbd: nbd_channel_error() shutdown channel unconditionally
Don't rely on connection being totally broken in case of -EIO. Safer
and more correct is to just shut down the channel anyway, since we
change the state and plan on reconnecting.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20210902103805.25686-2-vsementsov@virtuozzo.com>
[eblake: grammar tweaks]
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'hw/misc/macio')
0 files changed, 0 insertions, 0 deletions