diff options
author | Eli Cohen <elic@nvidia.com> | 2022-05-18 16:38:01 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-05-31 19:44:21 +0300 |
commit | 0078ad905dc8eada34461312a0060b0904c57e2d (patch) | |
tree | 3fbcd2bcf23cd60cc5007880e7957af0deb8815f /include/linux/uio.h | |
parent | 13b00b135665c92065a27c0c39dd97e0f380bd4f (diff) | |
download | linux-0078ad905dc8eada34461312a0060b0904c57e2d.tar.xz |
net/vdpa: Use readers/writers semaphore instead of vdpa_dev_mutex
Use rw_semaphore instead of mutex to control access to vdpa devices.
This can be especially beneficial in case processes poll on statistics
information.
Suggested-by: Si-Wei Liu <si-wei.liu@oracle.com>
Reviewed-by: Si-Wei Liu <si-wei.liu@oracle.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Eli Cohen <elic@nvidia.com>
Message-Id: <20220518133804.1075129-4-elic@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/linux/uio.h')
0 files changed, 0 insertions, 0 deletions