Browse Source

Revert "Since we roll work all the time now, we end up staging a lot of work without queueing, so don't queue if we've already got staged work."

This reverts commit b81077f36a74e1c1f58b36a9401245134a8d373a.

This creates too many false positives for pool not providing work fast enough.
Con Kolivas 14 years ago
parent
commit
cea1cf6cc0
1 changed files with 0 additions and 4 deletions
  1. 0 4
      main.c

+ 0 - 4
main.c

@@ -2945,9 +2945,6 @@ static bool queue_request(struct thr_info *thr, bool needed)
 	if (rq >= maxq || rs >= maxq)
 		return true;
 
-	if (rs > rq)
-		goto out;
-
 	/* fill out work request message */
 	wc = calloc(1, sizeof(*wc));
 	if (unlikely(!wc)) {
@@ -2976,7 +2973,6 @@ static bool queue_request(struct thr_info *thr, bool needed)
 		workio_cmd_free(wc);
 		return false;
 	}
-out:
 	inc_queued();
 	return true;
 }