X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=ioengines.c;h=bb7833f120a6c5a62ba839750c15bb2e170e8582;hp=1a0898de701e349acdd9f4a2c1337504374334ec;hb=f9a58c2a6818830c772f3aa0b82bf04de7569acf;hpb=214ac7e009897f8f82ab9e21aff9bc86d33bb470 diff --git a/ioengines.c b/ioengines.c index 1a0898de..bb7833f1 100644 --- a/ioengines.c +++ b/ioengines.c @@ -208,6 +208,16 @@ int td_io_getevents(struct thread_data *td, unsigned int min, unsigned int max, { int r = 0; + /* + * For ioengine=rdma one side operation RDMA_WRITE or RDMA_READ, + * server side gets a message from the client + * side that the task is finished, and + * td->done is set to 1 after td_io_commit(). In this case, + * there is no need to reap complete event in server side. + */ + if (td->done) + return 0; + if (min > 0 && td->io_ops->commit) { r = td->io_ops->commit(td); if (r < 0)