powerpc: fix cpus_online() to get correct max CPU number for powerpc64
[fio.git] / ioengines.c
index b724e0e90e089668ef0a32acd1eb95c7133b4e09..decc9cbb459ec953712f78fb1ac2aa6a4e3b7fac 100644 (file)
@@ -49,10 +49,6 @@ static int check_engine_ops(struct ioengine_ops *ops)
                log_err("%s: no getevents handler\n", ops->name);
                return 1;
        }
-       if (!ops->queue) {
-               log_err("%s: no queue handler\n", ops->name);
-               return 1;
-       }
 
        return 0;
 }
@@ -299,6 +295,7 @@ int td_io_queue(struct thread_data *td, struct io_u *io_u)
        if (ddir_rw(ddir)) {
                td->io_issues[ddir]++;
                td->io_issue_bytes[ddir] += buflen;
+               td->rate_io_issue_bytes[ddir] += buflen;
        }
 
        ret = td->io_ops->queue(td, io_u);
@@ -308,6 +305,7 @@ int td_io_queue(struct thread_data *td, struct io_u *io_u)
        if (ret == FIO_Q_BUSY && ddir_rw(ddir)) {
                td->io_issues[ddir]--;
                td->io_issue_bytes[ddir] -= buflen;
+               td->rate_io_issue_bytes[ddir] -= buflen;
        }
 
        /*
@@ -327,7 +325,8 @@ int td_io_queue(struct thread_data *td, struct io_u *io_u)
            td->o.odirect) {
 
                log_info("fio: first direct IO errored. File system may not "
-                        "support direct IO, or iomem_align= is bad.\n");
+                        "support direct IO, or iomem_align= is bad. Try "
+                        "setting direct=0.\n");
        }
 
        if (!td->io_ops->commit || io_u->ddir == DDIR_TRIM) {