Skip to content

Commit

Permalink
engines/splice: remove buggy ->mem_align set
Browse files Browse the repository at this point in the history
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: axboe#810
Reported-by: Sitsofe Wheeler <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Aug 3, 2019
1 parent f2d6de5 commit 8ca8a05
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions engines/splice.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8ca8a05

Please sign in to comment.