Re: [PATCH] iommu/amd: Use wait_event in put_pasid_state_wait

2015-02-04 Thread Joerg Roedel
On Wed, Feb 04, 2015 at 05:34:50PM +0100, Peter Zijlstra wrote: > On Wed, Feb 04, 2015 at 04:10:22PM +0100, Joerg Roedel wrote: > > From: Joerg Roedel > > > > Now that I learned about possible spurious wakeups this > > place needs fixing too. Replace the self-coded sleep variant > > with the gene

Re: [PATCH] iommu/amd: Use wait_event in put_pasid_state_wait

2015-02-04 Thread Peter Zijlstra
On Wed, Feb 04, 2015 at 04:10:22PM +0100, Joerg Roedel wrote: > From: Joerg Roedel > > Now that I learned about possible spurious wakeups this > place needs fixing too. Replace the self-coded sleep variant > with the generic wait_event() helper. > > Signed-off-by: Joerg Roedel > --- > drivers/

[PATCH] iommu/amd: Use wait_event in put_pasid_state_wait

2015-02-04 Thread Joerg Roedel
From: Joerg Roedel Now that I learned about possible spurious wakeups this place needs fixing too. Replace the self-coded sleep variant with the generic wait_event() helper. Signed-off-by: Joerg Roedel --- drivers/iommu/amd_iommu_v2.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(