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 185531 Details for
Bug 251978
kernel panic : kernel BUG at include/linux/netdevice.h:888!
[?]
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]
patch example w/o additional locking
net.patch (text/plain), 2.41 KB, created by
Tina Yang
on 2007-09-04 03:20:06 UTC
(
hide
)
Description:
patch example w/o additional locking
Filename:
MIME Type:
Creator:
Tina Yang
Created:
2007-09-04 03:20:06 UTC
Size:
2.41 KB
patch
obsolete
>--- linux-2.6.9/net/core/dev.c.orig 2007-06-28 00:53:51.178885000 -0700 >+++ linux-2.6.9/net/core/dev.c 2007-09-03 20:01:34.767326000 -0700 >@@ -1760,6 +1760,8 @@ static void net_rx_action(struct softirq > unsigned long start_time = jiffies; > int budget = netdev_max_backlog; > void *have; >+ struct net_device *null_dev = &queue->poll_list - >+ offsetof(struct net_device, poll_list); > > local_irq_disable(); > >@@ -1774,8 +1776,22 @@ static void net_rx_action(struct softirq > dev = list_entry(queue->poll_list.next, > struct net_device, poll_list); > >+ /* The last dev could have been removed by netpoll >+ */ >+ if (dev == null_dev) >+ break; >+ > have = netpoll_poll_lock(dev); > >+ /* netpoll could have just released the lock, >+ * check if dev has already been polled >+ */ >+ if ((dev->poll_list->next != LIST_POISON1) { >+ netpoll_poll_unlock(have); >+ local_irq_disable(); >+ continue; >+ } >+ > if (dev->quota <= 0 || dev->poll(dev, &budget)) { > netpoll_poll_unlock(have); > local_irq_disable(); > > >--- linux-2.6.9/net/core/netpoll.c.orig 2007-06-28 00:53:27.847957000 -0700 >+++ linux-2.6.9/net/core/netpoll.c 2007-09-03 20:04:08.655594000 -0700 >@@ -96,13 +96,17 @@ static void poll_napi(struct net_device > if (test_bit(__LINK_STATE_RX_SCHED, &dev->state) && > npinfo->poll_owner != smp_processor_id() && > spin_trylock(&npinfo->poll_lock)) { >- npinfo->rx_flags |= NETPOLL_RX_DROP; >- atomic_inc(&trapped); >+ /* Check if dev has already been processed >+ */ >+ if (dev->poll_list->next != LIST_POISON1) { >+ npinfo->rx_flags |= NETPOLL_RX_DROP; >+ atomic_inc(&trapped); > >- dev->poll(dev, &budget); >+ dev->poll(dev, &budget); > >- atomic_dec(&trapped); >- npinfo->rx_flags &= ~NETPOLL_RX_DROP; >+ atomic_dec(&trapped); >+ npinfo->rx_flags &= ~NETPOLL_RX_DROP; >+ } > spin_unlock(&npinfo->poll_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 251978
:
161198
|
181601
|
183141
|
183961
|
185531
|
185541
|
186681
|
187461
|
187831
|
189261
|
190311
|
190351
|
194551