From: Jens Axboe Date: Sat, 3 Aug 2019 14:33:24 +0000 (-0600) Subject: engines/splice: remove buggy ->mem_align set X-Git-Tag: fio-3.16~36 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=8ca8a05d92fa799fe93a6edc27b058802211fddc engines/splice: remove buggy ->mem_align set Two things wrong here: 1) We align buffers by default, so no need for splice to do anything extra. 2) ->mem_align is not a true/false setting, it's the alignment itself. Hence the current setting to 1 is just buggy. Fixes: https://github.com/axboe/fio/issues/810 Reported-by: Sitsofe Wheeler Signed-off-by: Jens Axboe --- diff --git a/engines/splice.c b/engines/splice.c index feb764fe..6fc36bb6 100644 --- a/engines/splice.c +++ b/engines/splice.c @@ -278,13 +278,6 @@ static int fio_spliceio_init(struct thread_data *td) */ sd->vmsplice_to_user_map = 1; - /* - * And if vmsplice_to_user works, we definitely need aligned - * buffers. Just set ->odirect to force that. - */ - if (td_read(td)) - td->o.mem_align = 1; - td->io_ops_data = sd; return 0; }