summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorJeff Darcy <jdarcy@redhat.com>2012-10-03 16:53:23 -0400
committerAnand Avati <avati@redhat.com>2012-10-03 14:10:24 -0700
commit557602e7637a7ef702db2b60f9cf10ecbe2837f3 (patch)
tree1c2c5db531e6af5a42a6c8ff2e908cfc51c521b4 /libglusterfs
parentcffc3756652977268307ac5759abc5dddee74468 (diff)
core: make sure there are processors for just-queued tasks
Change-Id: I6196ad02fab6c24ac473cda0f78f9e946f0329ce BUG: 862838 Signed-off-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-on: http://review.gluster.org/4031 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/syncop.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libglusterfs/src/syncop.c b/libglusterfs/src/syncop.c
index 711379666bf..0a98b44b9a3 100644
--- a/libglusterfs/src/syncop.c
+++ b/libglusterfs/src/syncop.c
@@ -229,6 +229,11 @@ synctask_new (struct syncenv *env, synctask_fn_t fn, synctask_cbk_t cbk,
}
synctask_wake (newtask);
+ /*
+ * Make sure someone's there to execute anything we just put on the
+ * run queue.
+ */
+ syncenv_scale(env);
if (!cbk) {
pthread_mutex_lock (&newtask->mutex);