From: Robert Elliott Date: Thu, 22 Dec 2016 20:50:44 +0000 (-0600) Subject: Fix unit_base kb_base mixup in thread option conversion functions X-Git-Tag: fio-2.17~43 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=a199930c13c6bf8a3d35992d0afe4df57649f8bf;p=fio.git Fix unit_base kb_base mixup in thread option conversion functions Don't set unit_base, which is 1 or 8, to kb_base, which is 1000 or 1024, during the convert functions used by the initial cconv test. Signed-off-by: Jens Axboe --- diff --git a/cconv.c b/cconv.c index 336805be..0c116291 100644 --- a/cconv.c +++ b/cconv.c @@ -88,7 +88,7 @@ void convert_thread_options_to_cpu(struct thread_options *o, o->td_ddir = le32_to_cpu(top->td_ddir); o->rw_seq = le32_to_cpu(top->rw_seq); o->kb_base = le32_to_cpu(top->kb_base); - o->unit_base = le32_to_cpu(top->kb_base); + o->unit_base = le32_to_cpu(top->unit_base); o->ddir_seq_nr = le32_to_cpu(top->ddir_seq_nr); o->ddir_seq_add = le64_to_cpu(top->ddir_seq_add); o->iodepth = le32_to_cpu(top->iodepth); @@ -336,7 +336,7 @@ void convert_thread_options_to_net(struct thread_options_pack *top, top->td_ddir = cpu_to_le32(o->td_ddir); top->rw_seq = cpu_to_le32(o->rw_seq); top->kb_base = cpu_to_le32(o->kb_base); - top->unit_base = cpu_to_le32(o->kb_base); + top->unit_base = cpu_to_le32(o->unit_base); top->ddir_seq_nr = cpu_to_le32(o->ddir_seq_nr); top->iodepth = cpu_to_le32(o->iodepth); top->iodepth_low = cpu_to_le32(o->iodepth_low);