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 147119 Details for
Bug 222445
Thousands of clurgmgrd threads when gfs exported thru nfs
[?]
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]
Only let one status check thread exist.
rgmanager-222445.patch (text/plain), 1.10 KB, created by
Lon Hohberger
on 2007-02-01 17:10:57 UTC
(
hide
)
Description:
Only let one status check thread exist.
Filename:
MIME Type:
Creator:
Lon Hohberger
Created:
2007-02-01 17:10:57 UTC
Size:
1.10 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P cluster-RHEL5 >Index: rgmanager/src/daemons/groups.c >=================================================================== >RCS file: /cvs/cluster/cluster/rgmanager/src/daemons/groups.c,v >retrieving revision 1.25.2.1 >diff -u -r1.25.2.1 groups.c >--- rgmanager/src/daemons/groups.c 18 Dec 2006 21:48:48 -0000 1.25.2.1 >+++ rgmanager/src/daemons/groups.c 1 Feb 2007 17:10:34 -0000 >@@ -44,6 +44,7 @@ > static fod_t *_domains = NULL; > > pthread_mutex_t config_mutex = PTHREAD_MUTEX_INITIALIZER; >+pthread_mutex_t status_mutex = PTHREAD_MUTEX_INITIALIZER; > pthread_rwlock_t resource_lock = PTHREAD_RWLOCK_INITIALIZER; > > void res_build_name(char *, size_t, resource_t *); >@@ -991,6 +992,10 @@ > resource_node_t *curr; > rg_state_t svcblk; > char rg[64]; >+ >+ /* Only one status thread at a time, please! */ >+ if (pthread_mutex_trylock(&status_mutex) != 0) >+ return NULL; > > pthread_rwlock_rdlock(&resource_lock); > list_do(&_tree, curr) { >@@ -1013,6 +1018,7 @@ > } while (!list_done(&_tree, curr)); > > pthread_rwlock_unlock(&resource_lock); >+ pthread_mutex_unlock(&status_mutex); > > return NULL; > }
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 222445
:
145486
| 147119