|
|
@ -5915,7 +5915,6 @@ static struct work *hash_pop(void) |
|
|
|
|
|
|
|
|
|
|
|
mutex_lock(stgd_lock); |
|
|
|
mutex_lock(stgd_lock); |
|
|
|
while (!HASH_COUNT(staged_work)) { |
|
|
|
while (!HASH_COUNT(staged_work)) { |
|
|
|
if (!no_work) { |
|
|
|
|
|
|
|
struct timespec then; |
|
|
|
struct timespec then; |
|
|
|
struct timeval now; |
|
|
|
struct timeval now; |
|
|
|
int rc; |
|
|
|
int rc; |
|
|
@ -5932,10 +5931,6 @@ static struct work *hash_pop(void) |
|
|
|
no_work = true; |
|
|
|
no_work = true; |
|
|
|
applog(LOG_WARNING, "Waiting for work to be available from pools."); |
|
|
|
applog(LOG_WARNING, "Waiting for work to be available from pools."); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
|
|
|
|
pthread_cond_signal(&gws_cond); |
|
|
|
|
|
|
|
pthread_cond_wait(&getq->cond, stgd_lock); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (no_work) { |
|
|
|
if (no_work) { |
|
|
|