net/vdpa: Use readers/writers semaphore instead of cf_mutex
authorEli Cohen <elic@nvidia.com>
Wed, 18 May 2022 13:38:02 +0000 (16:38 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 31 May 2022 16:44:22 +0000 (12:44 -0400)
commita6a51adc6e8aafebfe0c4beb80e99694ea562b40
tree06b4f824e11866d8bd4d316a213e755f963971d1
parent0078ad905dc8eada34461312a0060b0904c57e2d
net/vdpa: Use readers/writers semaphore instead of cf_mutex

Replace cf_mutex with rw_semaphore to reflect the fact that some calls
could be called concurrently but can suffice with read lock.

Suggested-by: Si-Wei Liu <si-wei.liu@oracle.com>
Signed-off-by: Eli Cohen <elic@nvidia.com>
Message-Id: <20220518133804.1075129-5-elic@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/vdpa.c
include/linux/vdpa.h