commit | 61d792562b53c610f9fe917f2bbc22218aa39c22 | [log] [tgz] |
---|---|---|
author | Alex Williamson <alex.williamson@redhat.com> | Thu Aug 07 11:12:04 2014 -0600 |
committer | Alex Williamson <alex.williamson@redhat.com> | Thu Aug 07 11:12:04 2014 -0600 |
tree | 639616536bce3e1855e24b8c240f688b7e62f283 | |
parent | 9c22e660ce8105debb497933b9900eaeb40836d2 [diff] |
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: Alex Williamson <alex.williamson@redhat.com>