From: David Miller <davem@davemloft.net>
To: sean.wang@mediatek.com
Cc: john@phrozen.org, nbd@openwrt.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org
Subject: Re: [PATCH] net: ethernet: mediatek: fixed deadlock captured by lockdep
Date: Tue, 04 Jul 2017 01:43:57 -0700 (PDT) [thread overview]
Message-ID: <20170704.014357.2098420534003373919.davem@davemloft.net> (raw)
In-Reply-To: <96f5bb5018167e8d327d7613674cc1f2a81fe99f.1499137698.git.sean.wang@mediatek.com>
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.
prev parent reply other threads:[~2017-07-04 8:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-04 3:17 sean.wang
2017-07-04 8:43 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170704.014357.2098420534003373919.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=john@phrozen.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=nbd@openwrt.org \
--cc=netdev@vger.kernel.org \
--cc=sean.wang@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®