The following changes since commit 6f1a24593c227a4f392f454698aca20e95f0006c: Makefile: Suppress `-Wimplicit-fallthrough` when compiling `lex.yy` (2022-05-12 11:02:55 -0600) are available in the Git repository at: git://git.kernel.dk/fio.git master for you to fetch changes up to a2840331c3cae5b2b0a13f99e58ae18375e2e40d: Merge branch 'master' of https://github.com/guoanwu/fio (2022-05-25 06:30:06 -0600) ---------------------------------------------------------------- Jens Axboe (1): Merge branch 'master' of https://github.com/guoanwu/fio dennis.wu (1): pmemblk.c: fix one logic bug - read always with write engines/pmemblk.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) --- Diff of recent changes: diff --git a/engines/pmemblk.c b/engines/pmemblk.c index fc6358e8..849d8a15 100644 --- a/engines/pmemblk.c +++ b/engines/pmemblk.c @@ -375,10 +375,11 @@ static enum fio_q_status fio_pmemblk_queue(struct thread_data *td, off /= pmb->pmb_bsize; len /= pmb->pmb_bsize; while (0 < len) { - if (io_u->ddir == DDIR_READ && - 0 != pmemblk_read(pmb->pmb_pool, buf, off)) { - io_u->error = errno; - break; + if (io_u->ddir == DDIR_READ) { + if (0 != pmemblk_read(pmb->pmb_pool, buf, off)) { + io_u->error = errno; + break; + } } else if (0 != pmemblk_write(pmb->pmb_pool, buf, off)) { io_u->error = errno; break;