I introduced a deadlock avoidance into 1.4, which I attempted to port to trunk as well.
Unfortunately, since trunk uses read/write locks for the context lock, it means that I have actually *introduced* a deadlock condition since they are not recursive. Removing this change for now and will look into introducing a different one. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89483 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
6d30ebbac7
commit
a83ecf2fb3
1 changed files with 0 additions and 2 deletions
|
@ -2722,7 +2722,6 @@ static void handle_statechange(const char *device)
|
|||
{
|
||||
struct ast_hint *hint;
|
||||
|
||||
ast_rdlock_contexts();
|
||||
AST_RWLIST_RDLOCK(&hints);
|
||||
|
||||
AST_RWLIST_TRAVERSE(&hints, hint, list) {
|
||||
|
@ -2760,7 +2759,6 @@ static void handle_statechange(const char *device)
|
|||
}
|
||||
|
||||
AST_RWLIST_UNLOCK(&hints);
|
||||
ast_unlock_contexts();
|
||||
}
|
||||
|
||||
static int statechange_queue(const char *dev)
|
||||
|
|
Reference in a new issue