43b63c68b9
When killing QEMU or remote client is terminated normally, we can release current controller related data structure, users may restart QEMU to connect the same socket file again, for the new connection, vfio-user will create a new controller data structure for it. Here we add a lock in the endpoint data structure to protect number of connected queue pairs variable, because controller data structure is like a session, while endpoint is related with the socket file, so it's safe here. Moreover, we can use this lock to protect live migration related data structures in future. Change-Id: Ie7060041a253604e7a2242813ec284eae46fe4e8 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6862 Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: <dongx.yi@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> |
||
---|---|---|
.. | ||
ctrlr_bdev.c | ||
ctrlr_discovery.c | ||
ctrlr.c | ||
fc_ls.c | ||
fc.c | ||
Makefile | ||
nvmf_fc.h | ||
nvmf_internal.h | ||
nvmf_rpc.c | ||
nvmf.c | ||
rdma.c | ||
spdk_nvmf.map | ||
subsystem.c | ||
tcp.c | ||
transport.c | ||
transport.h | ||
vfio_user.c |