e1c0c4c785
Vhost sessions currently inherit the SCSI target status from their vhost devices when started. So if a session is started while an asynchronous SCSI target hotplug is in progress, the newly started session will inherit the VHOST_SCSI_DEV_ADDING state, which was not meant to be used in sessions and will likely cause vhost to misbehave. The ADDING status is used by the entire vhost device to indicate that some sessions are still hotplugging the SCSI target and that target can't be hotremoved just yet. The sessions set their targets' state to PRESENT when hotplugging them, so newly started sessions should do the same. This patch also prevents the same SCSI target to be hotplugged twice to a single session. It wouldn't cause any problems, but some resources could've been leaked. Change-Id: Icdbff78c167fc1f2f65137087334bd5512e81546 Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/450052 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> |
||
---|---|---|
.. | ||
bdev | ||
blob | ||
blobfs | ||
conf | ||
copy | ||
env_dpdk | ||
event | ||
ftl | ||
ioat | ||
iscsi | ||
json | ||
jsonrpc | ||
log | ||
lvol | ||
nbd | ||
net | ||
notify | ||
nvme | ||
nvmf | ||
reduce | ||
rocksdb | ||
rpc | ||
scsi | ||
sock | ||
thread | ||
trace | ||
ut_mock | ||
util | ||
vhost | ||
virtio | ||
Makefile |