]> Git Repo - linux.git/commit - drivers/vfio/container.c
vfio: Change vfio_group->group_rwsem to a mutex
authorJason Gunthorpe <[email protected]>
Thu, 29 Sep 2022 14:59:25 +0000 (11:59 -0300)
committerAlex Williamson <[email protected]>
Tue, 4 Oct 2022 18:06:58 +0000 (12:06 -0600)
commitc82e81ab2569559ad873b3061217c2f37560682b
tree3cdb8747c5bbe641a1f0811aaa403dbc7364ff28
parent912b74d26c7df2da1e261f3dac8942c8cbb76a49
vfio: Change vfio_group->group_rwsem to a mutex

These days not much is using the read side:
 - device first open
 - ioctl_get_status
 - device FD release
 - check enforced_coherent

None of this is performance, so just make it into a normal mutex.

Signed-off-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
drivers/vfio/container.c
drivers/vfio/vfio.h
drivers/vfio/vfio_main.c
This page took 0.052315 seconds and 4 git commands to generate.