All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Respect iodepth_batch_complete=0 in main loop
@ 2011-07-20 21:11 Dan Ehrenberg
  2011-07-20 21:11 ` [PATCH 2/2] Libaio engine support for iodepth_batch_complete=0 Dan Ehrenberg
  2011-07-23 11:37 ` [PATCH 1/2] Respect iodepth_batch_complete=0 in main loop Jens Axboe
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Ehrenberg @ 2011-07-20 21:11 UTC (permalink / raw)
  To: fio@vger.kernel.org, Jens Axboe; +Cc: Dan Ehrenberg

If the iodepth_batch_complete is 0, then even if the queue is full,
we still don't make min_events be 1 in the main loop. Instead, poll
in a non-blocking way until a result is found.

Signed-off-by: Dan Ehrenberg <dehrenberg@google.com>
---
 fio.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fio.c b/fio.c
index 120431e..7396421 100644
--- a/fio.c
+++ b/fio.c
@@ -557,7 +557,7 @@ sync_done:
 		if (full || !td->o.iodepth_batch_complete) {
 			min_events = min(td->o.iodepth_batch_complete,
 					 td->cur_depth);
-			if (full && !min_events)
+			if (full && !min_events && td->o.iodepth_batch_complete != 0)
 				min_events = 1;
 
 			do {
@@ -719,7 +719,7 @@ sync_done:
 		if (full || !td->o.iodepth_batch_complete) {
 			min_evts = min(td->o.iodepth_batch_complete,
 					td->cur_depth);
-			if (full && !min_evts)
+			if (full && !min_evts && td->o.iodepth_batch_complete != 0)
 				min_evts = 1;
 
 			if (__should_check_rate(td, 0) ||
-- 
1.7.3.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-23 11:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-20 21:11 [PATCH 1/2] Respect iodepth_batch_complete=0 in main loop Dan Ehrenberg
2011-07-20 21:11 ` [PATCH 2/2] Libaio engine support for iodepth_batch_complete=0 Dan Ehrenberg
2011-07-23 11:37 ` [PATCH 1/2] Respect iodepth_batch_complete=0 in main loop Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.