From a783e61aadbdd51ea69b8c62a3cbe0897b739123 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 19 Jun 2007 09:50:28 +0200 Subject: [PATCH] io_u_mark_depth: just set index, don't fall through Signed-off-by: Jens Axboe --- io_u.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/io_u.c b/io_u.c index 53921e85..9aab97f7 100644 --- a/io_u.c +++ b/io_u.c @@ -363,17 +363,22 @@ void io_u_mark_depth(struct thread_data *td, struct io_u *io_u) switch (td->cur_depth) { default: - index++; + index = 6; + break; case 32 ... 63: - index++; + index = 5; + break; case 16 ... 31: - index++; + index = 4; + break; case 8 ... 15: - index++; + index = 3; + break; case 4 ... 7: - index++; + index = 2; + break; case 2 ... 3: - index++; + index = 1; case 1: break; } -- 2.25.1