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 212751 Details for
Bug 314631
[RHEL 4.5] fix netpoll deadlock
[?]
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]
Proposed patch to fix the deadlock
linux-2.6.9-55-consolespin_fix_to_RH.patch (text/plain), 1.38 KB, created by
Flavio Leitner
on 2007-10-01 19:43:51 UTC
(
hide
)
Description:
Proposed patch to fix the deadlock
Filename:
MIME Type:
Creator:
Flavio Leitner
Created:
2007-10-01 19:43:51 UTC
Size:
1.38 KB
patch
obsolete
>--- ./net/core/netpoll.c.orig 2007-09-26 19:43:30.000000000 -0700 >+++ ./net/core/netpoll.c 2007-09-26 20:13:24.000000000 -0700 >@@ -232,7 +232,7 @@ > skb_reserve(skb, reserve); > return skb; > } >- >+#define MAX_NETCONSOLE_SPINLOCK_RETRIES 20000 > /* > * This function can be called from virtual device drivers, such as the > * bonding driver. In this case, skb->dev is filled in with the real >@@ -247,6 +248,8 @@ > struct net_device_wrapper *ndw = dev_wrapper(dev); > struct netpoll_info *npinfo; > >+ int spinlock_retry_count, got_lock; >+ > if(!ndw || !np || !dev || !netif_running(dev)) { > __kfree_skb(skb); > return; >@@ -262,7 +265,20 @@ > > do { > npinfo->tries--; >- spin_lock(&dev->xmit_lock); >+ /* pradeep.vincent@gmail.com - Use trylock to prevent deadlock >+ due to interrupt context lock attempt during main >+ network tx code path */ >+ spinlock_retry_count = 0; >+ do { >+ got_lock = spin_trylock(&dev->xmit_lock); >+ if (unlikely(!got_lock)) >+ udelay(1); >+ } while ( !got_lock && ++spinlock_retry_count < MAX_NETCONSOLE_SPINLOCK_RETRIES); >+ if (unlikely(!got_lock) ) { >+ __kfree_skb(skb); >+ return; >+ } >+ > dev->xmit_lock_owner = smp_processor_id(); > > /*
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 314631
: 212751