summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMax Reitz2015-02-06 22:06:16 +0100
committerStefan Hajnoczi2015-02-16 15:36:03 +0100
commitf53a829bb9ef14be800556cbc02d8b20fc1050a7 (patch)
tree6b18946eed64c59e72baebabaabe59b98faef0a2 /include
parentMerge remote-tracking branch 'remotes/rth/tags/pull-tcg-20150212' into staging (diff)
downloadqemu-f53a829bb9ef14be800556cbc02d8b20fc1050a7.tar.gz
qemu-f53a829bb9ef14be800556cbc02d8b20fc1050a7.tar.xz
qemu-f53a829bb9ef14be800556cbc02d8b20fc1050a7.zip
nbd: Drop BDS backpointer
Before this patch, the "opaque" pointer in an NBD BDS points to a BDRVNBDState, which contains an NbdClientSession object, which in turn contains a pointer to the BDS. This pointer may become invalid due to bdrv_swap(), so drop it, and instead pass the BDS directly to the nbd-client.c functions which then retrieve the NbdClientSession object from there. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 1423256778-3340-2-git-send-email-mreitz@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/block/nbd.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/block/nbd.h b/include/block/nbd.h
index b75959556c..ca9a5ac5b3 100644
--- a/include/block/nbd.h
+++ b/include/block/nbd.h
@@ -99,7 +99,6 @@ void nbd_export_close_all(void);
NBDClient *nbd_client_new(NBDExport *exp, int csock,
void (*close)(NBDClient *));
-void nbd_client_close(NBDClient *client);
void nbd_client_get(NBDClient *client);
void nbd_client_put(NBDClient *client);