Max Reitz f53a829bb9 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>
2015-02-16 14:36:03 +00:00
..
2015-01-13 11:47:56 +00:00
2015-02-06 17:24:21 +01:00
2015-02-16 14:36:03 +00:00
2015-02-16 14:36:03 +00:00
2015-02-16 14:36:03 +00:00
2014-12-10 10:31:19 +01:00
2014-11-03 11:41:47 +00:00
2015-02-06 17:24:21 +01:00
2014-12-12 13:16:56 +00:00