From: Jens Axboe Date: Mon, 4 Feb 2008 09:48:13 +0000 (+0100) Subject: Don't allow FIO_SYNCIO io engine flag to override queue depth X-Git-Tag: fio-1.18~8 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=1e3c09afa64eb5b6ce5c5cc14a7a13f3c564f197 Don't allow FIO_SYNCIO io engine flag to override queue depth Another bad check, just kill it. Signed-off-by: Jens Axboe --- diff --git a/fio.c b/fio.c index 04a06bac..fcd15286 100644 --- a/fio.c +++ b/fio.c @@ -639,11 +639,7 @@ static int init_io_u(struct thread_data *td) int i, max_units; char *p; - if (td->io_ops->flags & FIO_SYNCIO) - max_units = 1; - else - max_units = td->o.iodepth; - + max_units = td->o.iodepth; max_bs = max(td->o.max_bs[DDIR_READ], td->o.max_bs[DDIR_WRITE]); td->orig_buffer_size = (unsigned long long) max_bs * (unsigned long long) max_units;