Home
last modified time | relevance | path

Searched hist:"6 cc702be" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/block/
H A Dnbd.c6cc702be Thu Jun 10 05:07:36 CDT 2021 Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> block/nbd: call socket_address_parse_named_fd() in advance

Detecting monitor by current coroutine works bad when we are not in
coroutine context. And that's exactly so in nbd reconnect code, where
qio_channel_socket_connect_sync() is called from thread.

Monitor is needed only to parse named file descriptor. So, let's just
parse it during nbd_open(), so that all further users of s->saddr don't
need to access monitor.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20210610100802.5888-7-vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>