• Alex Elder's avatar
    net: ipa: rework last transaction determination · b2abe33d
    Alex Elder authored
    When quiescing a channel, we find the "last" transaction, which is
    the latest one to have been allocated.  (New transaction allocation
    will have been prevented by the time this is called.)
    
    Currently we do this by looking for the first non-empty transaction
    list in each state, then return the last entry from that last.
    Instead, determine the last entry in each list (if any) and return
    that entry if found.
    
    Temporarily (locally) introduce list_last_entry_or_null() as a
    helper for this, mirroring list_first_entry_or_null().  This macro
    definition will be removed by an upcoming patch.
    
    Remove the temporary warnings added by the previous commit.
    Signed-off-by: default avatarAlex Elder <elder@linaro.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    b2abe33d
gsi_trans.c 24.9 KB