]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb5dd1f9af2e1e94f9973c5e20a2f71b3bc9371d5
tree06b4f824e11866d8bd4d316a213e755f963971d1
parentbf8f82e6c7f33306ca20cb947e2f902545120ff1
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