Spdk/lib/vhost
Changpeng Liu 9da4e15c5c lib/vhost: start device asynchronously
Now we will start the device(virtio-blk and virtio-scsi) when
there is a valid I/O queue(VRING_KICK message), the backend
device `start_session` callback will ensure this check, so
when processing VRING_KICK messages for each vring, we can
just call `new_device` if `started` is false, and if `started`
is true, it means the device is already started, it's safe
for us to add one more vring even the device is started.

With this change, we don't need to wait for the return value
of `start_session` in synchronous mode, just return is OK.

Fix #2518.

Change-Id: I92ba3d4e5c38422d7697c1d13180a4a48f0dd4cd
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14981
Community-CI: Mellanox Build Bot
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2022-11-03 14:53:55 +00:00
..
Makefile Replace most BSD 3-clause license text with SPDX identifier. 2022-06-09 07:35:12 +00:00
rte_vhost_user.c lib/vhost: start device asynchronously 2022-11-03 14:53:55 +00:00
spdk_vhost.map event/vhost: separate vhost subsystem to scsi and blk 2022-05-20 09:20:07 +00:00
vhost_blk.c lib/vhost: don't restart device multiple times 2022-11-03 14:53:55 +00:00
vhost_internal.h lib/vhost: don't restart device multiple times 2022-11-03 14:53:55 +00:00
vhost_rpc.c vhost/rpc: return errno from virtio_blk_create_transport 2022-07-11 07:41:22 +00:00
vhost_scsi.c lib/vhost: don't restart device multiple times 2022-11-03 14:53:55 +00:00
vhost.c Replace most BSD 3-clause license text with SPDX identifier. 2022-06-09 07:35:12 +00:00