Re: [PATCH 1/7] vfio: Fix group release deadlock

2017-06-14 Thread Auger Eric
Hi Alex, On 09/06/2017 23:59, Alex Williamson wrote: > If vfio_iommu_group_notifier() acquires a group reference and that > reference becomes the last reference to the group, then vfio_group_put > introduces a deadlock code path where we're trying to unregister from > the iommu notifier chain

Re: [PATCH 1/7] vfio: Fix group release deadlock

2017-06-14 Thread Auger Eric
Hi Alex, On 09/06/2017 23:59, Alex Williamson wrote: > If vfio_iommu_group_notifier() acquires a group reference and that > reference becomes the last reference to the group, then vfio_group_put > introduces a deadlock code path where we're trying to unregister from > the iommu notifier chain

[PATCH 1/7] vfio: Fix group release deadlock

2017-06-09 Thread Alex Williamson
If vfio_iommu_group_notifier() acquires a group reference and that reference becomes the last reference to the group, then vfio_group_put introduces a deadlock code path where we're trying to unregister from the iommu notifier chain from within a callout of that chain. Use a work_struct to

[PATCH 1/7] vfio: Fix group release deadlock

2017-06-09 Thread Alex Williamson
If vfio_iommu_group_notifier() acquires a group reference and that reference becomes the last reference to the group, then vfio_group_put introduces a deadlock code path where we're trying to unregister from the iommu notifier chain from within a callout of that chain. Use a work_struct to