Skip to content

Commit

Permalink
Merge branch 'master' into gfio
Browse files Browse the repository at this point in the history
  • Loading branch information
axboe committed Sep 25, 2012
2 parents 0950e83 + 88045e0 commit de26d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ static int init_io_u(struct thread_data *td)
td->orig_buffer_size = (unsigned long long) max_bs
* (unsigned long long) max_units;

if ((td->io_ops->flags & FIO_NOIO) || !td_rw(td))
if ((td->io_ops->flags & FIO_NOIO) || !(td_read(td) || td_write(td)))
data_xfer = 0;

if (td->o.mem_type == MEM_SHMHUGE || td->o.mem_type == MEM_MMAPHUGE) {
Expand Down

0 comments on commit de26d51

Please sign in to comment.