* [PATCH 1/2] E1000: Fix ifdown hang in git-2.6.24
@ 2007-08-23 9:04 Krishna Kumar
2007-08-23 9:04 ` [PATCH 2/2] [RFC] E1000: Fix hang in netdev_wait_allrefs() Krishna Kumar
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Krishna Kumar @ 2007-08-23 9:04 UTC (permalink / raw)
To: netdev, davem; +Cc: Krishna Kumar
Doing napi_disable twice hangs "ifdown" of the device. e1000_down is the
common place to call napi_disable.
Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
---
e1000_main.c | 4 ----
1 files changed, 4 deletions(-)
diff -ruNp org/drivers/net/e1000/e1000_main.c new/drivers/net/e1000/e1000_main.c
--- org/drivers/net/e1000/e1000_main.c 2007-08-23 13:32:16.000000000 +0530
+++ new/drivers/net/e1000/e1000_main.c 2007-08-23 13:32:34.000000000 +0530
@@ -1477,10 +1477,6 @@ e1000_close(struct net_device *netdev)
{
struct e1000_adapter *adapter = netdev_priv(netdev);
-#ifdef CONFIG_E1000_NAPI
- napi_disable(&adapter->napi);
-#endif
-
WARN_ON(test_bit(__E1000_RESETTING, &adapter->flags));
e1000_down(adapter);
e1000_power_down_phy(adapter);
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/2] [RFC] E1000: Fix hang in netdev_wait_allrefs()
2007-08-23 9:04 [PATCH 1/2] E1000: Fix ifdown hang in git-2.6.24 Krishna Kumar
@ 2007-08-23 9:04 ` Krishna Kumar
2007-08-25 6:08 ` David Miller
2007-08-23 16:11 ` [PATCH 1/2] E1000: Fix ifdown hang in git-2.6.24 Kok, Auke
2007-08-25 6:07 ` David Miller
2 siblings, 1 reply; 5+ messages in thread
From: Krishna Kumar @ 2007-08-23 9:04 UTC (permalink / raw)
To: netdev, davem; +Cc: Krishna Kumar
After applying patch1, I started getting "waiting for count" messages when
doing ifdown. Not sure if this is the right fix since the count was already
showing as -1 in that message, but this patch fixes the problem.
Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
---
e1000_main.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -ruNp new/drivers/net/e1000/e1000_main.c new2/drivers/net/e1000/e1000_main.c
--- new/drivers/net/e1000/e1000_main.c 2007-08-23 13:32:34.000000000 +0530
+++ new2/drivers/net/e1000/e1000_main.c 2007-08-23 14:28:12.000000000 +0530
@@ -1219,12 +1219,13 @@ e1000_remove(struct pci_dev *pdev)
* would have already happened in close and is redundant. */
e1000_release_hw_control(adapter);
- unregister_netdev(netdev);
#ifdef CONFIG_E1000_NAPI
for (i = 0; i < adapter->num_rx_queues; i++)
dev_put(&adapter->polling_netdev[i]);
#endif
+ unregister_netdev(netdev);
+
if (!e1000_check_phy_reset_block(&adapter->hw))
e1000_phy_hw_reset(&adapter->hw);
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] E1000: Fix ifdown hang in git-2.6.24
2007-08-23 9:04 [PATCH 1/2] E1000: Fix ifdown hang in git-2.6.24 Krishna Kumar
2007-08-23 9:04 ` [PATCH 2/2] [RFC] E1000: Fix hang in netdev_wait_allrefs() Krishna Kumar
@ 2007-08-23 16:11 ` Kok, Auke
2007-08-25 6:07 ` David Miller
2 siblings, 0 replies; 5+ messages in thread
From: Kok, Auke @ 2007-08-23 16:11 UTC (permalink / raw)
To: davem; +Cc: Krishna Kumar, netdev
Krishna Kumar wrote:
> Doing napi_disable twice hangs "ifdown" of the device. e1000_down is the
> common place to call napi_disable.
>
> Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
> ---
> e1000_main.c | 4 ----
> 1 files changed, 4 deletions(-)
>
> diff -ruNp org/drivers/net/e1000/e1000_main.c new/drivers/net/e1000/e1000_main.c
> --- org/drivers/net/e1000/e1000_main.c 2007-08-23 13:32:16.000000000 +0530
> +++ new/drivers/net/e1000/e1000_main.c 2007-08-23 13:32:34.000000000 +0530
> @@ -1477,10 +1477,6 @@ e1000_close(struct net_device *netdev)
> {
> struct e1000_adapter *adapter = netdev_priv(netdev);
>
> -#ifdef CONFIG_E1000_NAPI
> - napi_disable(&adapter->napi);
> -#endif
> -
> WARN_ON(test_bit(__E1000_RESETTING, &adapter->flags));
> e1000_down(adapter);
> e1000_power_down_phy(adapter);
Acked-by: Auke Kok <auke-jan.h.kok@intel.com>
I pushed this change to akpm for -mm as well in e1000e...
Thanks Krishna,
Auke
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] E1000: Fix ifdown hang in git-2.6.24
2007-08-23 9:04 [PATCH 1/2] E1000: Fix ifdown hang in git-2.6.24 Krishna Kumar
2007-08-23 9:04 ` [PATCH 2/2] [RFC] E1000: Fix hang in netdev_wait_allrefs() Krishna Kumar
2007-08-23 16:11 ` [PATCH 1/2] E1000: Fix ifdown hang in git-2.6.24 Kok, Auke
@ 2007-08-25 6:07 ` David Miller
2 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2007-08-25 6:07 UTC (permalink / raw)
To: krkumar2; +Cc: netdev
From: Krishna Kumar <krkumar2@in.ibm.com>
Date: Thu, 23 Aug 2007 14:34:18 +0530
> Doing napi_disable twice hangs "ifdown" of the device. e1000_down is the
> common place to call napi_disable.
>
> Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
Applied, thanks a lot.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] [RFC] E1000: Fix hang in netdev_wait_allrefs()
2007-08-23 9:04 ` [PATCH 2/2] [RFC] E1000: Fix hang in netdev_wait_allrefs() Krishna Kumar
@ 2007-08-25 6:08 ` David Miller
0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2007-08-25 6:08 UTC (permalink / raw)
To: krkumar2; +Cc: netdev
From: Krishna Kumar <krkumar2@in.ibm.com>
Date: Thu, 23 Aug 2007 14:34:31 +0530
> After applying patch1, I started getting "waiting for count" messages when
> doing ifdown. Not sure if this is the right fix since the count was already
> showing as -1 in that message, but this patch fixes the problem.
>
> Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
I've applied this because is fixes the problem and there have
be no objections coming along with better fixes :)
If this is bogus we can rever it and put in a more proper fix.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-08-25 6:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-23 9:04 [PATCH 1/2] E1000: Fix ifdown hang in git-2.6.24 Krishna Kumar
2007-08-23 9:04 ` [PATCH 2/2] [RFC] E1000: Fix hang in netdev_wait_allrefs() Krishna Kumar
2007-08-25 6:08 ` David Miller
2007-08-23 16:11 ` [PATCH 1/2] E1000: Fix ifdown hang in git-2.6.24 Kok, Auke
2007-08-25 6:07 ` David Miller
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).