[PATCH] SG IO engine: remember to set io_u->file in init
[fio.git] / engines / sg.c
index 877264acd15b3316f4abd6b2c5002f09177f83df..6c997bd47cad75523582ea77bc7da454396c69f0 100644 (file)
@@ -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);
        int ret;
 
        io_u = __get_io_u(td);
+       io_u->file = &td->files[0];
        assert(io_u);
 
        hdr = &io_u->hdr;
        assert(io_u);
 
        hdr = &io_u->hdr;