From: Oliver Hartkopp <socketcan@hartkopp.net>
To: matvejchikov@gmail.com
Cc: netdev@vger.kernel.org, Alan Cox <alan@lxorguk.ukuu.org.uk>
Subject: Re: [PATCH] slip: fix NOHZ local_softirq_pending 08 warning
Date: Tue, 09 Aug 2011 19:07:29 +0200 [thread overview]
Message-ID: <4E416951.4020207@hartkopp.net> (raw)
In-Reply-To: <CAKh5naYrNPG3UO02VzG13QUP-SOP8-Td+O0G5LAr-+npduP49A@mail.gmail.com>
Hello Ilya,
is the processing of characters in the tty input stream for line disciplines
*always* done in softirq context???
If so, i would send a patch for drivers/net/can/slcan.c too ...
Thanks,
Oliver
On 05.08.2011 21:23, Matvejchikov Ilya wrote:
> When using nanosleep() in an userspace application we get a ratelimit warning:
>
> NOHZ: local_softirq_pending 08
>
> According to 481a8199142c050b72bff8a1956a49fd0a75bbe0 the problem is caused by
> netif_rx() function. This patch replaces netif_rx() with netif_rx_ni() which
> has to be used from process/softirq context.
>
> Signed-off-by: Matvejchikov Ilya <matvejchikov@gmail.com>
> ---
> drivers/net/slip.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/slip.c b/drivers/net/slip.c
> index f11b3f3..4c61753 100644
> --- a/drivers/net/slip.c
> +++ b/drivers/net/slip.c
> @@ -367,7 +367,7 @@ static void sl_bump(struct slip *sl)
> memcpy(skb_put(skb, count), sl->rbuff, count);
> skb_reset_mac_header(skb);
> skb->protocol = htons(ETH_P_IP);
> - netif_rx(skb);
> + netif_rx_ni(skb);
> dev->stats.rx_packets++;
> }
>
next prev parent reply other threads:[~2011-08-09 17:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-05 19:23 [PATCH] slip: fix NOHZ local_softirq_pending 08 warning Matvejchikov Ilya
2011-08-08 5:14 ` David Miller
2011-08-09 17:07 ` Oliver Hartkopp [this message]
2011-08-10 7:47 ` Matvejchikov Ilya
2011-08-10 9:28 ` Alan Cox
2011-08-10 14:33 ` Oliver Hartkopp
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=4E416951.4020207@hartkopp.net \
--to=socketcan@hartkopp.net \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=matvejchikov@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).