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 310963 Details for
Bug 452693
POSIX timer set to fire immediately does not fire
[?]
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]
hrtimer: prevent migration for raising CPU
hrtimer-dont-migrate-raisesoftirq.patch (text/plain), 1.24 KB, created by
Clark Williams
on 2008-07-03 20:54:22 UTC
(
hide
)
Description:
hrtimer: prevent migration for raising CPU
Filename:
MIME Type:
Creator:
Clark Williams
Created:
2008-07-03 20:54:22 UTC
Size:
1.24 KB
patch
obsolete
>From: Steven Rostedt <srostedt@redhat.com> >Subject: hrtimer: prevent migration for raising CPU > >Due to a possible deadlock, the waking of the softirq was pushed outside >of the hrtimer base locks. Unfortunately this allows the task to migrate >after setting up the softirq and raising it. Since softirqs run a queue that >is per-cpu we may raise the softirq on the wrong CPU and this will keep >the queued softirq task from running. > >To solve this issue, this patch disables preemption around the releasing >of the hrtimer lock and raising of the softirq. > >Signed-off-by: Steven Rostedt <srostedt@redhat.com> > >Index: linux-2.6.24.7.noarch/kernel/hrtimer.c >=================================================================== >--- linux-2.6.24.7.noarch.orig/kernel/hrtimer.c >+++ linux-2.6.24.7.noarch/kernel/hrtimer.c >@@ -930,10 +930,18 @@ hrtimer_start(struct hrtimer *timer, kti > */ > raise = timer->state == HRTIMER_STATE_PENDING; > >+ /* >+ * We use preempt_disable to prevent this task from migrating after >+ * setting up the softirq and raising it. Otherwise, if me migrate >+ * we will raise the softirq on the wrong CPU. >+ */ >+ preempt_disable(); >+ > unlock_hrtimer_base(timer, &flags); > > if (raise) > hrtimer_raise_softirq(); >+ preempt_enable(); > > return ret; > }
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 452693
:
310481
|
310594
|
310598
| 310963