]> 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)
commita9a68d73c41b04f80f889aa9bfbcc053bad18efc
tree06b4f824e11866d8bd4d316a213e755f963971d1
parent8d68b4bb073eb8ad1046ae9af0f1ab58b7568ca7
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