OSDN Git Service

nbd: a BlockExport always has a BlockBackend
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Dec 2022 22:49:57 +0000 (23:49 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 20 Apr 2023 09:17:36 +0000 (11:17 +0200)
commitdd5b6780f78bcbfc2120d879b092a8380d8bc706
treeb69b69ce17768eda100e3e09959fc17bb306a260
parent000eebcfe8824aa35face1d06b0fa3ab3ec2aea8
nbd: a BlockExport always has a BlockBackend

exp->common.blk cannot be NULL, nbd_export_delete() is only called (through
a bottom half) from blk_exp_unref() and in turn that can only happen
after blk_exp_add() has asserted exp->blk != NULL.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
nbd/server.c