• Ivo van Doorn's avatar
    rt2x00: Fix race conditions in flag handling · 0262ab0d
    Ivo van Doorn authored
    Some of the flags should be accessed atomically to
    prevent race conditions. The flags that are most important
    are those that can change often and indicate the actual
    state of the device, queue or queue entry.
    
    The big flag rename was done to move all state flags to
    the same naming type as the other rt2x00dev flags and
    made sure all places where the flags were used were changed. ;)
    
    Thanks to Stephen for most of the queue flags updates,
    which fixes some of the most obvious consequences of the
    race conditions. Among those the notorious:
    
    rt2x00queue_write_tx_frame: Error - Arrived at non-free entry in the non-full queue 0.
    rt2x00queue_write_tx_frame: Error - Arrived at non-free entry in the non-full queue 0.
    rt2x00queue_write_tx_frame: Error - Arrived at non-free entry in the non-full queue 0.
    Signed-off-by: default avatarStephen Blackheath <tramp.enshrine.stephen@blacksapphire.com>
    Signed-off-by: default avatarIvo van Doorn <IvDoorn@gmail.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    0262ab0d
rt2400pci.c 48.1 KB