Re: [RFC V2] iommu: correct group reference count

2015-11-09 Thread Peng Fan
Hi Will, On Mon, Nov 09, 2015 at 10:10:59AM +, Will Deacon wrote: >On Mon, Nov 09, 2015 at 02:13:28PM +0800, Peng Fan wrote: >> The basic flow for iommu_group_for_dev is: >> iommu_group_get_for_dev >> |-> iommu_group_get : increase reference count by 1. >> return

Re: [RFC V2] iommu: correct group reference count

2015-11-09 Thread Peng Fan
Hi Alex, On Mon, Nov 09, 2015 at 08:28:09AM -0700, Alex Williamson wrote: >On Mon, 2015-11-09 at 14:13 +0800, Peng Fan wrote: >> The basic flow for iommu_group_for_dev is: >> iommu_group_get_for_dev >> |-> iommu_group_get : increase reference count by 1. >> return group; >>

Re: [RFC V2] iommu: correct group reference count

2015-11-09 Thread Alex Williamson
On Mon, 2015-11-09 at 14:13 +0800, Peng Fan wrote: > The basic flow for iommu_group_for_dev is: > iommu_group_get_for_dev > |-> iommu_group_get : increase reference count by 1. > return group; > |-> ops->device_group : Init/increase reference count to/by 1. >

Re: [RFC V2] iommu: correct group reference count

2015-11-09 Thread Will Deacon
On Mon, Nov 09, 2015 at 02:13:28PM +0800, Peng Fan wrote: > The basic flow for iommu_group_for_dev is: > iommu_group_get_for_dev > |-> iommu_group_get : increase reference count by 1. > return group; > |-> ops->device_group : Init/increase reference count to/by 1.

[RFC V2] iommu: correct group reference count

2015-11-08 Thread Peng Fan
The basic flow for iommu_group_for_dev is: iommu_group_get_for_dev |-> iommu_group_get : increase reference count by 1. return group; |-> ops->device_group : Init/increase reference count to/by 1. iommu_group_add_device : Increase reference count by