From: Jens Axboe Date: Thu, 8 Feb 2007 19:29:41 +0000 (+0100) Subject: [PATCH] SG IO engine: remember to set io_u->file in init X-Git-Tag: fio-1.12~120 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=6ab9e267d0a48de95c86875ba93fe17203163bb0;ds=sidebyside [PATCH] SG IO engine: remember to set io_u->file in init It's now mandatory, since it supports multiple files now. Signed-off-by: Jens Axboe --- diff --git a/engines/sg.c b/engines/sg.c index 877264ac..6c997bd4 100644 --- a/engines/sg.c +++ b/engines/sg.c @@ -285,6 +285,7 @@ static int fio_sgio_get_bs(struct thread_data *td, unsigned int *bs) int ret; io_u = __get_io_u(td); + io_u->file = &td->files[0]; assert(io_u); hdr = &io_u->hdr;