From: subashab@codeaurora.org
To: eric.dumazet@gmail.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] net: rps: fix data stall after hotplug
Date: Mon, 23 Mar 2015 22:16:12 -0000 [thread overview]
Message-ID: <744bbefe8859bf667eafc0de02729078.squirrel@www.codeaurora.org> (raw)
In-Reply-To: <b25a45de2cb43bbcfcaa84634d74533e.squirrel@www.codeaurora.org>
>> On Thu, 2015-03-19 at 14:50 -0700, Eric Dumazet wrote:
>>
>>> Are you seeing this race on x86 ?
>>>
>>> If IPI are not reliable on your arch, I am guessing you should fix
>>> them.
>>>
>>> Otherwise, even without hotplug you'll have hangs.
>>
>> Please try instead this patch :
>>
>> diff --git a/net/core/dev.c b/net/core/dev.c
>> index
>> 5d43e010ef870a6ab92895297fe18d6e6a03593a..baa4bff9a6fbe0d77d7921865c038060cb5efffd
>> 100644
>> --- a/net/core/dev.c
>> +++ b/net/core/dev.c
>> @@ -4320,9 +4320,8 @@ static void net_rps_action_and_irq_enable(struct
>> softnet_data *sd)
>> while (remsd) {
>> struct softnet_data *next = remsd->rps_ipi_next;
>>
>> - if (cpu_online(remsd->cpu))
>> - smp_call_function_single_async(remsd->cpu,
>> - &remsd->csd);
>> + smp_call_function_single_async(remsd->cpu,
>> + &remsd->csd);
>> remsd = next;
>> }
>> } else
>>
>>
> Thanks for the patch Eric. We are seeing this race on ARM.
> I will try this and update.
>
Unfortunately, I am not able to reproduce data stall now with or without
the patch. Could you tell me more about the patch and what issue you were
suspecting?
Based on the code, it looks like we BUG out on our arch if we try to call
an IPI on an offline CPU. Since this condition is never hit, I feel that
the IPI might not have failed.
void smp_send_reschedule(int cpu)
{
BUG_ON(cpu_is_offline(cpu));
smp_cross_call_common(cpumask_of(cpu), IPI_RESCHEDULE);
}
--
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
next prev parent reply other threads:[~2015-03-23 22:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-19 19:54 [PATCH] net: rps: fix data stall after hotplug subashab
2015-03-19 21:50 ` Eric Dumazet
2015-03-20 11:50 ` Eric Dumazet
2015-03-20 16:40 ` subashab
2015-03-23 22:16 ` subashab [this message]
2015-03-23 22:29 ` Eric Dumazet
2015-03-25 18:54 ` subashab
2015-03-30 23:49 ` subashab
2015-03-31 4:48 ` Eric Dumazet
2015-03-31 22:02 ` subashab
2015-03-31 23:44 ` Eric Dumazet
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=744bbefe8859bf667eafc0de02729078.squirrel@www.codeaurora.org \
--to=subashab@codeaurora.org \
--cc=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).