X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=engines%2Fsg.c;h=790019e1d57fa48e7a635cecdc47dd5b6835cba3;hp=cc50d6b937e747009b39d1651ab279800ee8a446;hb=7101d9c24abec4be58a086d85d6d92ec6e6492e9;hpb=317b95d07d4921d2594a1be6e014c9c2d062fe75 diff --git a/engines/sg.c b/engines/sg.c index cc50d6b9..790019e1 100644 --- a/engines/sg.c +++ b/engines/sg.c @@ -242,6 +242,8 @@ static int fio_sgio_queue(struct thread_data *td, struct io_u *io_u) struct sg_io_hdr *hdr = &io_u->hdr; int ret; + fio_ro_check(td, io_u); + ret = fio_sgio_doio(td, io_u, io_u->ddir == DDIR_SYNC); if (ret < 0)