]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:09:34 +0000 (13:09 +0100)
commita9f01f0776f006d470192aa20104c60edb522c81
tree069fd1ec3855b67300b0e434bc89230138479815
parent447092100c7e71aa20469a270fcee441d807ed58
vdpa: Sync calls set/get config/status with cf_mutex

[ Upstream commit 73bc0dbb591baea322a7319c735e5f6c7dba9cfb ]

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>
Stable-dep-of: e40b6abe0b12 ("virtio_vdpa: fix misleading return in void function")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/vdpa/vdpa.c
drivers/vhost/vdpa.c
drivers/virtio/virtio_vdpa.c
include/linux/vdpa.h