• Sven Eckelmann's avatar
    batman-adv: Set special lockdep classes to avoid lockdep warning · 36c1d153
    Sven Eckelmann authored
    Transmissions over batman-adv devices always start another nested transmission
    over devices attached to the batman-adv interface. These devices usually use
    the ethernet lockdep class for the tx_queue lock which is also set by default
    for all batman-adv devices. Lockdep will detect a nested locking attempt of two
    locks with the same class and warn about a possible deadlock.
    
    This is the default and expected behavior and should not alarm the locking
    correctness prove mechanism. Therefore, the locks for all netdevice specific tx
    queues get a special batman-adv lock class to avoid a false positive for each
    transmission.
    Reported-by: default avatarLinus Luessing <linus.luessing@web.de>
    Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
    Signed-off-by: default avatarAntonio Quartulli <ordex@autistici.org>
    36c1d153
soft-interface.c 16.8 KB