summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLon Hohberger <lhh@redhat.com>2011-09-06 19:42:41 (GMT)
committerLon Hohberger <lhh@redhat.com>2012-01-10 21:36:41 (GMT)
commit737c05e726e32349dcf26fa1c54dabf4f94b6906 (patch)
treed0fa41fdc9885a91db372b72e837925b95accfca
parentb58b340885082b19bc2f8eab28354e552249e151 (diff)
downloadcluster-737c05e726e32349dcf26fa1c54dabf4f94b6906.zip
cluster-737c05e726e32349dcf26fa1c54dabf4f94b6906.tar.gz
cluster-737c05e726e32349dcf26fa1c54dabf4f94b6906.tar.xz
rgmanager: Resolve rare deadlock
In very rare cases, it was possible to fill up a pipe used for IPC between threads during reconfiguration, causing a deadlock. This patch resolves the issue. Resolves: rhbz#759541 Signed-off-by: Lon Hohberger <lhh@redhat.com>
-rw-r--r--rgmanager/src/daemons/groups.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/rgmanager/src/daemons/groups.c b/rgmanager/src/daemons/groups.c
index ecb7b85..128446a 100644
--- a/rgmanager/src/daemons/groups.c
+++ b/rgmanager/src/daemons/groups.c
@@ -1726,8 +1726,6 @@ init_resource_groups(int reconfigure, int do_init, int new_config_version)
free(val);
}
- /* Wait for any pending requests */
- rg_wait_threads();
/* Block operations that would break during configuration
changes */
rg_clear_initialized(FL_CONFIG);