Commit aa3f60ae88789ee120b1ab05a8a122d5d0303409

Con Kolivas 2014-02-01T09:29:39

Send a full allotment of jobs to the hfa device after a restart instead of reading the status.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 366709a..0ff2f41 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -964,9 +964,11 @@ restart:
 				return -1;
 			}
 		}
-	}
-
-	jobs = hfa_jobs(hashfast, info);
+		/* Give a full allotment of jobs after a restart, not waiting
+		 * for the status update telling us how much to give. */
+		jobs = info->usb_init_base.inflight_target;
+	} else
+		jobs = hfa_jobs(hashfast, info);
 
 	/* Wait on restart_wait for up to 0.5 seconds or submit jobs as soon as
 	 * they're required. */