diff options
author | Eli Cohen <elic@nvidia.com> | 2022-05-18 16:38:04 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-05-31 12:44:23 -0400 |
commit | 759ae7f9bf1e6b7f5c9c197d7207e2be1dfd74b1 (patch) | |
tree | 38e6e4201e9630c2ea215eab7e691200dba53cca /drivers/vdpa/vdpa_sim | |
parent | 1892a3d425bf525ac98d6d3534035e6ed2bfab50 (diff) |
vdpa/mlx5: Use readers/writers semaphore instead of mutex
Reading statistics could be done intensively and by several processes
concurrently. Reader's lock is sufficient in this case.
Change reslock from mutex to a rwsem.
Suggested-by: Si-Wei Liu <si-wei.liu@oracle.com>
Signed-off-by: Eli Cohen <elic@nvidia.com>
Message-Id: <20220518133804.1075129-7-elic@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vdpa/vdpa_sim')
0 files changed, 0 insertions, 0 deletions