]> git.proxmox.com Git - mirror_qemu.git/commit
nbd: code motion and function renaming
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Apr 2022 17:57:53 +0000 (19:57 +0200)
committerEric Blake <eblake@redhat.com>
Tue, 26 Apr 2022 18:16:38 +0000 (13:16 -0500)
commit8d45185cb76fa1dd7c3309940a967dc42d8619d4
tree667ab9cad90917d8fae73a39c738e630b362dda8
parentee19d953ecff53908a645d38a1b913fdf15a72f4
nbd: code motion and function renaming

Prepare for the next patch, so that the diff is less confusing.

nbd_client_connecting is moved closer to the definition point.

nbd_client_connecting_wait() is kept only for the reconnection
logic; when it is used to check if a request has to be reissued,
use the renamed function nbd_client_will_reconnect().  In the
next patch, the two cases will have different locking requirements.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220414175756.671165-7-pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@openvz.org>
Reviewed-by: Lukas Straub <lukasstraub2@web.de>
Signed-off-by: Eric Blake <eblake@redhat.com>
block/nbd.c