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

2017-07-04 Thread David Miller
From: Date: Tue, 4 Jul 2017 11:17:36 +0800 > From: Sean Wang > > 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

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

2017-07-03 Thread sean.wang
From: Sean Wang 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. [ 81.321030] WARNING: inconsistent lock state [