X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=engines%2Fposixaio.c;h=10340571af57fa79f2621027f937bcb424d6b554;hp=2fc56cd690772e05c1881f73eff2449f14cab981;hb=b2560f3ca4677e2908fc4111f4d04fae5df3b229;hpb=95bcd815e5ce55d6cdd8eb83bda5ee411f37bdc9;ds=sidebyside diff --git a/engines/posixaio.c b/engines/posixaio.c index 2fc56cd6..10340571 100644 --- a/engines/posixaio.c +++ b/engines/posixaio.c @@ -100,6 +100,7 @@ restart: default: io_u->error = err; case ECANCELED: + io_u->resid = io_u->xfer_buflen; case 0: pd->aio_events[r++] = io_u; io_u->seen = 1; @@ -153,10 +154,11 @@ static int fio_posixaio_queue(struct thread_data fio_unused *td, if (ret) { io_u->error = errno; - td_verror(td, io_u->error); + td_verror(td, io_u->error, "xfer"); + return FIO_Q_COMPLETED; } - - return io_u->error; + + return FIO_Q_QUEUED; } static void fio_posixaio_cleanup(struct thread_data *td)