X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=engines%2Fskeleton_external.c;h=0937d68562be1b196049a61ae858f4143e9041e5;hp=785b9a660a7fdfd2921eac125f70d1750c394fad;hb=36167d82e5f49dee91c6d2cd426068edee90e36f;hpb=48097d5c61aa1718e6dd4b3b647ea2eb6f00fcfb;ds=sidebyside diff --git a/engines/skeleton_external.c b/engines/skeleton_external.c index 785b9a66..0937d685 100644 --- a/engines/skeleton_external.c +++ b/engines/skeleton_external.c @@ -61,12 +61,17 @@ static int fio_skeleton_cancel(struct thread_data *td, struct io_u *io_u) * The io engine must transfer in the direction noted by io_u->ddir * to the buffer pointed to by io_u->xfer_buf for as many bytes as * io_u->xfer_buflen. Residual data count may be set in io_u->residual - * for a short read/write. Should return 0 for io_u complete, < 0 for - * an error, and > 0 for the number of bytes transferred. + * for a short read/write. */ static int fio_skeleton_queue(struct thread_data *td, struct io_u *io_u) { - return 0; + /* + * Could return FIO_Q_QUEUED for a queued request, + * FIO_Q_COMPLETED for a completed request, and FIO_Q_BUSY + * if we could queue no more at this point (you'd have to + * define ->commit() to handle that. + */ + return FIO_Q_COMPLETED; } /*