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 156089 Details for
Bug 241780
Autofs hangs on some mountpoints
[?]
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]
Test patch for the alarm deadlock problem
autofs-5.0.1-alarm-deadlock.patch (text/plain), 1.39 KB, created by
Ian Kent
on 2007-06-04 15:58:08 UTC
(
hide
)
Description:
Test patch for the alarm deadlock problem
Filename:
MIME Type:
Creator:
Ian Kent
Created:
2007-06-04 15:58:08 UTC
Size:
1.39 KB
patch
obsolete
>diff --git a/lib/alarm.c b/lib/alarm.c >index e0e6fd4..4a72605 100755 >--- a/lib/alarm.c >+++ b/lib/alarm.c >@@ -168,7 +168,6 @@ void alarm_delete(struct autofs_point *ap) > static void *alarm_handler(void *arg) > { > struct list_head *head; >- struct autofs_point *ap; > struct timespec expire; > time_t now; > int status; >@@ -192,10 +191,11 @@ static void *alarm_handler(void *arg) > > current = list_entry(head->next, struct alarm, list); > >- ap = current->ap; > now = time(NULL); > > if (current->time <= now) { >+ struct autofs_point *ap; >+ > list_del(¤t->list); > > if (current->cancel) { >@@ -203,11 +203,15 @@ static void *alarm_handler(void *arg) > continue; > } > >+ ap = current->ap; >+ free(current); >+ alarm_unlock(); >+ > state_mutex_lock(ap); > nextstate(ap->state_pipe[1], ST_EXPIRE); > state_mutex_unlock(ap); > >- free(current); >+ alarm_lock(); > continue; > } > >@@ -215,6 +219,7 @@ static void *alarm_handler(void *arg) > expire.tv_nsec = 0; > > while (1) { >+ struct autofs_point *ap; > struct alarm *next; > > status = pthread_cond_timedwait(&cond, &mutex, &expire); >@@ -232,12 +237,15 @@ static void *alarm_handler(void *arg) > break; > > list_del(¤t->list); >+ ap = current->ap; > free(current); >+ alarm_unlock(); > > state_mutex_lock(ap); > nextstate(ap->state_pipe[1], ST_EXPIRE); > state_mutex_unlock(ap); > >+ alarm_lock(); > break; > } > }
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 241780
:
155705
|
155783
|
155790
|
155792
|
156053
|
156069
| 156089 |
156232
|
156238
|
156240
|
156433
|
156437