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 307045 Details for
Bug 430452
kernel hangs when hitting sysrq-w repeatedly
[?]
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
kernel-hangs-when-hitting-sysrq-w-repeatedly.patch (text/plain), 1.14 KB, created by
Ivan Vecera
on 2008-05-29 12:44:07 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Ivan Vecera
Created:
2008-05-29 12:44:07 UTC
Size:
1.14 KB
patch
obsolete
>diff --git a/drivers/char/sysrq.c b/drivers/char/sysrq.c >index 011d65d..c7aeafa 100644 >--- a/drivers/char/sysrq.c >+++ b/drivers/char/sysrq.c >@@ -185,19 +185,32 @@ static struct sysrq_key_op sysrq_showmem_op = { > .action_msg = "Show Memory", > }; > >-static spinlock_t show_lock = SPIN_LOCK_UNLOCKED; >+static DEFINE_SPINLOCK(show_lock); >+ > static void showacpu(void *info) > { >- spin_lock(&show_lock); >- printk("CPU%d:\n", smp_processor_id()); >+ unsigned long flags; >+ >+ spin_lock_irqsave(&show_lock, flags); >+ printk(KERN_INFO "CPU%d:\n", smp_processor_id()); > show_stack(NULL, NULL); >- spin_unlock(&show_lock); >+ spin_unlock_irqrestore(&show_lock, flags); >+} >+ >+static void sysrq_show_othercpus(void *dummy) >+{ >+ smp_call_function(showacpu, NULL, 0, 0); > } >+ >+static DECLARE_WORK(sysrq_showcpus, sysrq_show_othercpus, NULL); >+ > static void sysrq_handle_showcpus(int key, struct pt_regs *pt_regs, >- struct tty_struct *tty) { >+ struct tty_struct *tty) >+{ > showacpu(NULL); >- smp_call_function(showacpu, NULL, 0, 0); >+ schedule_work(&sysrq_showcpus); > } >+ > static struct sysrq_key_op sysrq_showcpus_op = { > handler: sysrq_handle_showcpus, > help_msg: "shoWcpus",
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 430452
: 307045 |
310406