+1
−11
Loading
`vhost_user_dev_unregister` will check if the device is busy, so we don't need to check `user_dev->pending_async_op_num` here. For `vdev->registered`, with this check here, we can remove a device even it didn't have a valid QEMU connection, and since vhost-scsi supports hotplug feature, we don't need to check this flag either when it have a valid QEMU connection. Change-Id: I50cdeb5ca544e2ed93a1bc99ec3da8787a9e5df5 Signed-off-by:Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15481 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Feng Li <lifeng1519@gmail.com> Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com>