Re: [PATCH] net: ethernet: mediatek: fixed deadlock captured by lockdep
From: David Miller <davem@davemloft.net>
Date: 2017-07-04 08:44:03
Also in:
linux-mediatek, lkml
From: David Miller <davem@davemloft.net>
Date: 2017-07-04 08:44:03
Also in:
linux-mediatek, lkml
From: <sean.wang@mediatek.com> Date: Tue, 4 Jul 2017 11:17:36 +0800
From: Sean Wang <sean.wang@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@mediatek.com>
Good catch, applied, thanks.