vdpa: Sync calls set/get config/status with cf_mutex
authorEli Cohen <elic@nvidia.com>
Wed, 5 Jan 2022 11:46:35 +0000 (13:46 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 14 Jan 2022 23:50:53 +0000 (18:50 -0500)
commit73bc0dbb591baea322a7319c735e5f6c7dba9cfb
treea37442b71e81cf92ef849f36fe9be3fd4dfe476f
parenta7f46ba42485394edf9836969e220878f4908465
vdpa: Sync calls set/get config/status with cf_mutex

Add wrappers to get/set status and protect these operations with
cf_mutex to serialize these operations with respect to get/set config
operations.

Signed-off-by: Eli Cohen <elic@nvidia.com>
Link: https://lore.kernel.org/r/20220105114646.577224-4-elic@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/vdpa.c
drivers/vhost/vdpa.c
drivers/virtio/virtio_vdpa.c
include/linux/vdpa.h