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>
This commit is contained in:
Jeff Darcy 2012-10-03 16:53:23 -04:00 committed by Anand Avati
parent cffc375665
commit 557602e763

View File

@ -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);