]> git.baikalelectronics.ru Git - kernel.git/commit
vdpa: factor out vdpa_set_features_unlocked for vdpa internal use
authorSi-Wei Liu <si-wei.liu@oracle.com>
Sat, 15 Jan 2022 00:27:59 +0000 (19:27 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 4 Mar 2022 16:56:33 +0000 (11:56 -0500)
commite0077cc13b831f8fad5557442f73bf7728683713
treeb5e03ad8d94576cbe197010e705b84ac8d34be6a
parent0e7174b9d5877130fec41fb4a16e0c2ee4958d44
vdpa: factor out vdpa_set_features_unlocked for vdpa internal use

No functional change introduced. vdpa bus driver such as virtio_vdpa
or vhost_vdpa is not supposed to take care of the locking for core
by its own. The locked API vdpa_set_features should suffice the
bus driver's need.

Signed-off-by: Si-Wei Liu <si-wei.liu@oracle.com>
Reviewed-by: Eli Cohen <elic@nvidia.com>
Link: https://lore.kernel.org/r/1642206481-30721-2-git-send-email-si-wei.liu@oracle.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vdpa/vdpa.c
drivers/vhost/vdpa.c
drivers/virtio/virtio_vdpa.c
include/linux/vdpa.h