Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 105341 Details for
Bug 135202
HAL hangs - stops processing when a Netgear WG511 (Prism54) card inserted
Home
New
Search
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.rh92 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]
hoplug sequence number patch in lib/kobject.c that greatly reduces gaps in hotplug seqnums
linux-2.6.9-kobject.patch (text/plain), 1.03 KB, created by
Andrew Duggan
on 2004-10-17 04:06:25 UTC
(
hide
)
Description:
hoplug sequence number patch in lib/kobject.c that greatly reduces gaps in hotplug seqnums
Filename:
MIME Type:
Creator:
Andrew Duggan
Created:
2004-10-17 04:06:25 UTC
Size:
1.03 KB
patch
obsolete
>diff -Nru a/lib/kobject.c b/lib/kobject.c >--- a/lib/kobject.c 2004-10-16 17:06:06.897580773 -0400 >+++ b/lib/kobject.c 2004-10-16 17:08:05.794414613 -0400 >@@ -177,6 +177,10 @@ > envp [i++] = scratch; > scratch += sprintf(scratch, "ACTION=%s", action) + 1; > >+ kobj_path = kobject_get_path(kset, kobj, GFP_KERNEL); >+ if (!kobj_path) >+ goto exit; >+ > spin_lock(&sequence_lock); > seq = sequence_num++; > spin_unlock(&sequence_lock); >@@ -184,10 +188,6 @@ > envp [i++] = scratch; > scratch += sprintf(scratch, "SEQNUM=%ld", seq) + 1; > >- kobj_path = kobject_get_path(kset, kobj, GFP_KERNEL); >- if (!kobj_path) >- goto exit; >- > envp [i++] = scratch; > scratch += sprintf (scratch, "DEVPATH=%s", kobj_path) + 1; > >@@ -199,6 +199,13 @@ > if (retval) { > pr_debug ("%s - hotplug() returned %d\n", > __FUNCTION__, retval); >+ /* decr sequence_num since no event will happen >+ but only if it is consistent */ >+ spin_lock(&sequence_lock); >+ if (sequence_num == seq+1) >+ sequence_num--; >+ spin_unlock(&sequence_lock); >+ > goto exit; > } > }
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 135202
:
104979
|
104980
|
104981
|
105002
|
105003
|
105004
|
105006
|
105264
|
105265
|
105266
|
105267
|
105341
|
105412