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:
parent
cffc375665
commit
557602e763
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user