[PATCH] net: ethernet: mediatek: fixed deadlock captured by lockdep

David Miller davem at davemloft.net
Tue Jul 4 01:43:57 PDT 2017


From: <sean.wang at mediatek.com>
Date: Tue, 4 Jul 2017 11:17:36 +0800

> From: Sean Wang <sean.wang at mediatek.com>
> 
> Lockdep found an inconsistent lock state when mtk_get_stats64 is called
> in user context while NAPI updates MAC statistics in softirq.
> 
> Use spin_trylock_bh/spin_unlock_bh fix following lockdep warning.
 ...
> Signed-off-by: Sean Wang <sean.wang at mediatek.com>

Good catch, applied, thanks.



More information about the Linux-mediatek mailing list