Spdk/lib/vhost
Changpeng Liu 376c25ed0c lib/vhost: use user_dev's lock to protect vhost sessions
`spdk_vhost_dev` is created|deleted via RPC or APIs, and
we use a global `spdk_vhost_lock` to protect it, but for
some other places such as: vhost-user message processing,
we also use the global lock for now, actually we don't
need to use this lock, because these vhost-user messages
processing will not delete nor add vhost devices.

While here, we add a `spdk_vhost_user_dev` access lock to
protect vhost-user message processing as an optimization.

Change-Id: Ia9c45b056cebb7b65f458d56ed775a15e386f905
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15184
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Feng Li <lifeng1519@gmail.com>
2023-01-06 16:14:35 +00:00
..
Makefile update Intel copyright notices 2022-11-10 08:28:53 +00:00
rte_vhost_user.c lib/vhost: use user_dev's lock to protect vhost sessions 2023-01-06 16:14:35 +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: use user_dev's lock to protect vhost sessions 2023-01-06 16:14:35 +00:00
vhost_internal.h lib/vhost: use user_dev's lock to protect vhost sessions 2023-01-06 16:14:35 +00:00
vhost_rpc.c lib/vhost: use user_dev's lock to protect vhost sessions 2023-01-06 16:14:35 +00:00
vhost_scsi.c lib/vhost: use user_dev's lock to protect vhost sessions 2023-01-06 16:14:35 +00:00
vhost.c lib/vhost: use user_dev's lock to protect vhost sessions 2023-01-06 16:14:35 +00:00