Re: [PATCH v2 07/14] vfio/platform: Use open_device() instead of open coding a refcnt scheme

From
Cornelia Huck <cohuck@redhat.com>
Date
2021-07-22 14:48:52
Also in
dri-devel, intel-gfx, kvm, linux-doc
Reply to
Jason Gunthorpe, 2021-07-20
On Tue, Jul 20 2021, Jason Gunthorpe [off-list ref] wrote:
Platform simply wants to run some code when the device is first
opened/last closed. Use the core framework and locking for this.  Aside
from removing a bit of code this narrows the locking scope from a global
lock.

Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
---
 drivers/vfio/platform/vfio_platform_common.c  | 79 ++++++++-----------
 drivers/vfio/platform/vfio_platform_private.h |  1 -
 2 files changed, 32 insertions(+), 48 deletions(-)
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Thread (43 messages) 43 messages, 4 authors, last reply 2021-07-23
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help