aboutsummaryrefslogtreecommitdiff
path: root/net/tap-linux.h
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2021-06-10 13:07:36 +0300
committerEric Blake <eblake@redhat.com>2021-06-18 10:59:53 -0500
commit6cc702beac795a6de7b5f97700b140dcd9936055 (patch)
tree7a1a439f95a28cb851bce83f856e5e2ba7ea9420 /net/tap-linux.h
parentc5423704184c43cadd7b3c5ff0aea3925c5509bc (diff)
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>
Diffstat (limited to 'net/tap-linux.h')
0 files changed, 0 insertions, 0 deletions