diff options
author | Si-Wei Liu <si-wei.liu@oracle.com> | 2022-01-14 19:27:59 -0500 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-03-04 11:56:33 -0500 |
commit | e0077cc13b831f8fad5557442f73bf7728683713 (patch) | |
tree | b5e03ad8d94576cbe197010e705b84ac8d34be6a /drivers/vhost | |
parent | 0e7174b9d5877130fec41fb4a16e0c2ee4958d44 (diff) | |
download | linux-e0077cc13b831f8fad5557442f73bf7728683713.tar.bz2 |
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>
Diffstat (limited to 'drivers/vhost')
-rw-r--r-- | drivers/vhost/vdpa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c index 851539807bc9..ec5249e8c32d 100644 --- a/drivers/vhost/vdpa.c +++ b/drivers/vhost/vdpa.c @@ -286,7 +286,7 @@ static long vhost_vdpa_set_features(struct vhost_vdpa *v, u64 __user *featurep) if (copy_from_user(&features, featurep, sizeof(features))) return -EFAULT; - if (vdpa_set_features(vdpa, features, false)) + if (vdpa_set_features(vdpa, features)) return -EINVAL; return 0; |