From: Ding Tianhong <dingtianhong@huawei.com>
To: Cong Wang <xiyou.wangcong@gmail.com>
Cc: <luto@kernel.org>, Ingo Molnar <mingo@kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
Eric Dumazet <edumazet@google.com>,
"David S. Miller" <davem@davemloft.net>,
Netdev <netdev@vger.kernel.org>
Subject: Re: [PATCH] notifier: Fix soft lockup for notifier_call_chain().
Date: Tue, 28 Jun 2016 11:30:58 +0800 [thread overview]
Message-ID: <5771EF72.3060101@huawei.com> (raw)
In-Reply-To: <CAM_iQpU7mkBFk=AF0kbRZga-nvaE0=nMr-gmn1GJ8WDW-UvO4Q@mail.gmail.com>
On 2016/6/28 3:50, Cong Wang wrote:
> On Fri, Jun 24, 2016 at 7:46 PM, Ding Tianhong <dingtianhong@huawei.com> wrote:
>> diff --git a/kernel/notifier.c b/kernel/notifier.c
>> index fd2c9ac..9c30411 100644
>> --- a/kernel/notifier.c
>> +++ b/kernel/notifier.c
>> @@ -92,6 +92,8 @@ static int notifier_call_chain(struct notifier_block **nl,
>> #endif
>> ret = nb->notifier_call(nb, val, v);
>>
>> + cond_resched();
>> +
>> if (nr_calls)
>> (*nr_calls)++;
>
> NAK.
>
> You can't do a resched in atomic context in __atomic_notifier_call_chain().
>
>
Sorry, I miss this, so I think add touch_nmi_watchdog looks like the best solution for this problem.
Thanks
Ding
prev parent reply other threads:[~2016-06-28 3:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-25 2:46 [PATCH] notifier: Fix soft lockup for notifier_call_chain() Ding Tianhong
2016-06-27 19:50 ` Cong Wang
2016-06-28 3:30 ` Ding Tianhong [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=5771EF72.3060101@huawei.com \
--to=dingtianhong@huawei.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=mingo@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=xiyou.wangcong@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.