projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
syslet: make sure ring buffer is a power-of-2
[fio.git]
/
engines
/
sg.c
diff --git
a/engines/sg.c
b/engines/sg.c
index cc50d6b937e747009b39d1651ab279800ee8a446..790019e1d57fa48e7a635cecdc47dd5b6835cba3 100644
(file)
--- 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;
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)
ret = fio_sgio_doio(td, io_u, io_u->ddir == DDIR_SYNC);
if (ret < 0)