Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 156815 Details for
Bug 242572
Realtek 8169 (Netgear GA311 etc.) based gigabit cards freeze startup
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
/tmp/eb2a021c4710b98081daa797d5a729ac23c240cd.patch
eb2a021c4710b98081daa797d5a729ac23c240cd.patch (text/plain), 2.22 KB, created by
Andy Gospodarek
on 2007-06-12 18:44:48 UTC
(
hide
)
Description:
/tmp/eb2a021c4710b98081daa797d5a729ac23c240cd.patch
Filename:
MIME Type:
Creator:
Andy Gospodarek
Created:
2007-06-12 18:44:48 UTC
Size:
2.22 KB
patch
obsolete
>commit eb2a021c4710b98081daa797d5a729ac23c240cd >Author: Francois Romieu <romieu@fr.zoreil.com> >Date: Thu Feb 15 23:37:21 2007 +0100 > > r8169: RTNL and flush_scheduled_work deadlock > > flush_scheduled_work() in net_device->close has a slight tendency > to deadlock with tasks on the workqueue that hold RTNL. > > rtl8169_close/down simply need the recovery tasks to not meddle > with the hardware while the device is going down. > > Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> > Signed-off-by: Jeff Garzik <jeff@garzik.org> > >diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c >index 5598d86..13cf06e 100644 >--- a/drivers/net/r8169.c >+++ b/drivers/net/r8169.c >@@ -1733,6 +1733,8 @@ rtl8169_remove_one(struct pci_dev *pdev) > assert(dev != NULL); > assert(tp != NULL); > >+ flush_scheduled_work(); >+ > unregister_netdev(dev); > rtl8169_release_board(pdev, dev, tp->mmio_addr); > pci_set_drvdata(pdev, NULL); >@@ -2161,10 +2163,13 @@ static void rtl8169_reinit_task(struct work_struct *work) > struct net_device *dev = tp->dev; > int ret; > >- if (netif_running(dev)) { >- rtl8169_wait_for_quiescence(dev); >- rtl8169_close(dev); >- } >+ rtnl_lock(); >+ >+ if (!netif_running(dev)) >+ goto out_unlock; >+ >+ rtl8169_wait_for_quiescence(dev); >+ rtl8169_close(dev); > > ret = rtl8169_open(dev); > if (unlikely(ret < 0)) { >@@ -2179,6 +2184,9 @@ static void rtl8169_reinit_task(struct work_struct *work) > } > rtl8169_schedule_work(dev, rtl8169_reinit_task); > } >+ >+out_unlock: >+ rtnl_unlock(); > } > > static void rtl8169_reset_task(struct work_struct *work) >@@ -2187,8 +2195,10 @@ static void rtl8169_reset_task(struct work_struct *work) > container_of(work, struct rtl8169_private, task.work); > struct net_device *dev = tp->dev; > >+ rtnl_lock(); >+ > if (!netif_running(dev)) >- return; >+ goto out_unlock; > > rtl8169_wait_for_quiescence(dev); > >@@ -2210,6 +2220,9 @@ static void rtl8169_reset_task(struct work_struct *work) > } > rtl8169_schedule_work(dev, rtl8169_reset_task); > } >+ >+out_unlock: >+ rtnl_unlock(); > } > > static void rtl8169_tx_timeout(struct net_device *dev) >@@ -2722,8 +2735,6 @@ static void rtl8169_down(struct net_device *dev) > > netif_stop_queue(dev); > >- flush_scheduled_work(); >- > core_down: > spin_lock_irq(&tp->lock); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 242572
:
156603
|
156759
| 156815 |
156816
|
156817
|
158726
|
159748
|
160162
|
160173
|
160185
|
160277
|
160280
|
160474
|
160507
|
161084