Browse Source

Bugfix: bitforce: Remove sanity check triggered by race conditions on 65nm devices

Luke Dashjr 11 years ago
parent
commit
7da60d4830
1 changed files with 3 additions and 1 deletions
  1. 3 1
      driver-bitforce.c

+ 3 - 1
driver-bitforce.c

@@ -2552,12 +2552,14 @@ void bitforce_queue_flush(struct thr_info *thr)
 		// There is a race condition where the flush may have reported a job as in progress even though we completed and processed its results just now - so we just silence the sanity check
 		bitforce_queue_flush_sanity_check(thr, &processing, keysz, true);
 	
-final:
+final: ;
+#if 0
 	if (unlikely(inproc != -1 && inproc != data->queued))
 	{
 		applog(LOG_WARNING, "%"PRIpreprv": Sanity check: Device work inprogress count mismatch (dev inproc=%d, queued=%d)", bitforce->proc_repr, inproc, data->queued);
 		data->queued = inproc;
 	}
+#endif
 }
 
 static