[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140314.145850.706702494963811330.davem@davemloft.net>
Date: Fri, 14 Mar 2014 14:58:50 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: jeffrey.t.kirsher@...el.com
Cc: emil.s.tantilov@...el.com, netdev@...r.kernel.org,
gospo@...hat.com, sassmann@...hat.com, asharma@...com,
stable@...r.kernel.org, jacob.e.keller@...el.com
Subject: Re: [net-next 02/16] ixgbe: fix spinlock recursion with netpoll
and busy poll
From: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
Date: Fri, 14 Mar 2014 02:47:12 -0700
> From: Emil Tantilov <emil.s.tantilov@...el.com>
>
> This patch resolves a hang with busy poll when used with netconsole.
>
> The main change is the check for netpoll packets in ixgbe_poll() which
> prevents a call to spin_lock_bh() while interrupts are disabled.
>
> In addition it removes the call to netif_rx() since netif_receive_skb()
> can deal with netpoll packets and also replaced the global adapter flag
> with per-q_vector bool that indicates Rx packet from netpoll which
> should help with performance.
>
> CC: Arun Sharma <asharma@...com>
> CC: stable <stable@...r.kernel.org>
> Signed-off-by: Jacob Keller <jacob.e.keller@...el.com>
> Signed-off-by: Emil Tantilov <emil.s.tantilov@...el.com>
> Tested-by: Phil Schmitt <phillip.j.schmitt@...el.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
Eric Biederman and co. are working to make this completely unnecessary.
What is going to happen is that poll will be called with a budget of
zero, and no RX processing will thus occur, for netpoll.
Nothing in the RX path can handle being invoked from hardware
interrupt context, so we have to prevent it completely in all
drivers that support netpoll.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists