options: don't quicksort zoned distribution series
authorJens Axboe <axboe@kernel.dk>
Wed, 29 Nov 2017 19:37:30 +0000 (12:37 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 29 Nov 2017 19:37:30 +0000 (12:37 -0700)
If we do that, we mess up the distribution.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
options.c

index 7caccb331c1ec5be2a3de986208c44921db2db20..4bea8f781304312bc35a746df487210f53bb38c8 100644 (file)
--- a/options.c
+++ b/options.c
@@ -823,14 +823,6 @@ static int str_sfr_cb(void *data, const char *str)
 }
 #endif
 
 }
 #endif
 
-static int zone_cmp(const void *p1, const void *p2)
-{
-       const struct zone_split *zsp1 = p1;
-       const struct zone_split *zsp2 = p2;
-
-       return (int) zsp2->access_perc - (int) zsp1->access_perc;
-}
-
 static int zone_split_ddir(struct thread_options *o, enum fio_ddir ddir,
                           char *str)
 {
 static int zone_split_ddir(struct thread_options *o, enum fio_ddir ddir,
                           char *str)
 {
@@ -910,10 +902,6 @@ static int zone_split_ddir(struct thread_options *o, enum fio_ddir ddir,
                }
        }
 
                }
        }
 
-       /*
-        * now sort based on percentages, for ease of lookup
-        */
-       qsort(o->zone_split[ddir], o->zone_split_nr[ddir], sizeof(struct zone_split), zone_cmp);
        return 0;
 }
 
        return 0;
 }