Commit 967acd39bd9e14eb89670ff830a91ead10f62636

Con Kolivas 2011-07-27T15:06:04

Don't put an extra work item in the queue as each new device thread will do so itself.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/main.c b/main.c
index 257c756..d148d1d 100644
--- a/main.c
+++ b/main.c
@@ -3353,13 +3353,6 @@ static void *watchdog_thread(void *userdata)
 				thr->rolling = thr->cgpu->rolling = 0;
 				gpus[i].alive = false;
 				applog(LOG_ERR, "Attempting to restart thread %d, idle for more than 60 seconds", i);
-				/* Create one mandatory work item */
-				inc_staged(current_pool(), 1, true);
-				if (unlikely(!queue_request())) {
-					applog(LOG_ERR, "Failed to queue_request in watchdog_thread");
-					kill_work();
-					break;
-				}
 				reinit_device(thr->cgpu);
 				/* Only initialise the device once since there
 				 * will be multiple threads on the same device