Re: [PATCH v2] vfio/pci: Parallelize device open and release

2018-11-19 Thread Cornelia Huck
On Fri, 16 Nov 2018 09:18:41 -0700 Alex Williamson wrote: > In commit 61d792562b53 ("vfio-pci: Use mutex around open, release, and > remove") a mutex was added to freeze the refcnt for a device so that > we can handle errors and perform bus resets on final close. However, > bus resets can be rat

[PATCH v2] vfio/pci: Parallelize device open and release

2018-11-16 Thread Alex Williamson
In commit 61d792562b53 ("vfio-pci: Use mutex around open, release, and remove") a mutex was added to freeze the refcnt for a device so that we can handle errors and perform bus resets on final close. However, bus resets can be rather slow and a global mutex here is undesirable. Evaluating the pote