From ad8c4b7755e8d1cb01bded4260b5d278d345502d Mon Sep 17 00:00:00 2001 From: ckolivas Date: Tue, 7 Aug 2012 11:52:37 +1000 Subject: [PATCH] Revert "Only add to the pool curlring and increment the counter under mutex lock." This reverts commit 8897e0657507072448f4e951ce1caadca15b4b30. Wrong fix. Recursive locking now. --- cgminer.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cgminer.c b/cgminer.c index d1cb971a..39e52bd6 100644 --- a/cgminer.c +++ b/cgminer.c @@ -2185,10 +2185,8 @@ static void recruit_curl(struct pool *pool) if (unlikely(!ce->curl || !ce)) quit(1, "Failed to init in recruit_curl"); - mutex_lock(&pool->pool_lock); list_add(&ce->node, &pool->curlring); pool->curls++; - mutex_unlock(&pool->pool_lock); applog(LOG_DEBUG, "Recruited curl %d for pool %d", pool->curls, pool->pool_no); }