vdpa: Avoid taking cf_mutex lock on get status
authorEli Cohen <elic@nvidia.com>
Tue, 11 Jan 2022 18:33:57 +0000 (20:33 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 14 Jan 2022 23:50:54 +0000 (18:50 -0500)
commitf6d955d80830b6e6f6a170be68cc3628f36365dd
treedf85dffd566531fe0c376f6387e4130dbb799176
parentb2ce6197c9c9be0ecc2a636f3b2f35886ce09a98
vdpa: Avoid taking cf_mutex lock on get status

Avoid the wrapper holding cf_mutex since it is not protecting anything.
To avoid confusion and unnecessary overhead incurred by it, remove.

Fixes: f489f27bc0ab ("vdpa: Sync calls set/get config/status with cf_mutex")
Signed-off-by: Eli Cohen <elic@nvidia.com>
Link: https://lore.kernel.org/r/20220111183400.38418-2-elic@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Si-Wei Liu<si-wei.liu@oracle.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vdpa/vdpa.c
drivers/vhost/vdpa.c
include/linux/vdpa.h