lkml.org 
[lkml]   [2015]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] iommu/amd: Fix amd_iommu_free_device()
    Hi Peter,

    On Tue, Feb 03, 2015 at 01:25:51PM +0100, Peter Zijlstra wrote:
    > Subject: iommu/amd: Fix amd_iommu_free_device()
    >
    > put_device_state_wait() doesn't loop on the condition and a spurious
    > wakeup will have it free the device state even though there might still
    > be references out to it.

    Hmm, have you seen spurious wakeups happening? The wakeup only comes
    from put_device_state() and only when the reference count goes to zero.
    From my understanding this should be correct, but maybe I got the API
    wrong.


    Joerg



    \
     
     \ /
      Last update: 2015-02-03 18:41    [W:2.253 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site