Skip to content
Commit 61d79256 authored by Alex Williamson's avatar Alex Williamson
Browse files

vfio-pci: Use mutex around open, release, and remove



Serializing open/release allows us to fix a refcnt error if we fail
to enable the device and lets us prevent devices from being unbound
or opened, giving us an opportunity to do bus resets on release.  No
restriction added to serialize binding devices to vfio-pci while the
mutex is held though.

Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent 9c22e660
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment