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 645175 Details for
Bug 867433
system lock up or NMI during console stress
[?]
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 to reduce the async thread count to be sane
async.patch (text/plain), 1.52 KB, created by
Neil Horman
on 2012-11-14 20:51:59 UTC
(
hide
)
Description:
patch to reduce the async thread count to be sane
Filename:
MIME Type:
Creator:
Neil Horman
Created:
2012-11-14 20:51:59 UTC
Size:
1.52 KB
patch
obsolete
>diff --git a/kernel/async.c b/kernel/async.c >index a7239a7..3a2b095 100644 >--- a/kernel/async.c >+++ b/kernel/async.c >@@ -369,23 +369,15 @@ static int async_thread(void *unused) > else > ret = schedule_timeout(HZ); > >- if (ret == 0) { >- /* >- * we timed out, this means we as thread are redundant. >- * we sign off and die, but we to avoid any races there >- * is a last-straw check to see if work snuck in. >- */ >- atomic_dec(&thread_count); >- wmb(); /* manager must see our departure first */ >- if (list_empty(&async_pending)) >- break; >- /* >- * woops work came in between us timing out and us >- * signing off; we need to stay alive and keep working. >- */ >- atomic_inc(&thread_count); >- } >+ /* >+ * Exit if theres no more work for this thread >+ * to do >+ */ >+ if ((ret == 0) && list_empty(&async_pending)) >+ break; > } >+ wmb(); >+ atomic_dec(&thread_count); > remove_wait_queue(&async_new, &wq); > > return 0; >@@ -393,6 +385,8 @@ static int async_thread(void *unused) > > static int async_manager_thread(void *unused) > { >+ int ncpus = num_online_cpus(); >+ int max_threads = min(MAX_THREADS, ncpus); > DECLARE_WAITQUEUE(wq, current); > add_wait_queue(&async_new, &wq); > >@@ -404,8 +398,9 @@ static int async_manager_thread(void *unused) > tc = atomic_read(&thread_count); > rmb(); > ec = atomic_read(&entry_count); >+ ec = min(ec, max_threads); > >- while (tc < ec && tc < MAX_THREADS) { >+ while (tc < ec) { > if (IS_ERR(kthread_run(async_thread, NULL, "async/%i", > tc))) { > msleep(100);
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 867433
:
628827
| 645175