* [PATCH] backend: fix data direction flow check
@ 2012-09-25 10:00 Dmitry Monakhov
2012-09-25 10:11 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Monakhov @ 2012-09-25 10:00 UTC (permalink / raw)
To: fio; +Cc: axboe, Dmitry Monakhov
This patch fix regression caused SIGSEGV in case of writeonly
or readonly mode.
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
---
backend.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/backend.c b/backend.c
index 88623be..c31d22a 100644
--- a/backend.c
+++ b/backend.c
@@ -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) {
--
1.7.7.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] backend: fix data direction flow check
2012-09-25 10:00 [PATCH] backend: fix data direction flow check Dmitry Monakhov
@ 2012-09-25 10:11 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2012-09-25 10:11 UTC (permalink / raw)
To: Dmitry Monakhov; +Cc: fio
On 09/25/2012 12:00 PM, Dmitry Monakhov wrote:
> This patch fix regression caused SIGSEGV in case of writeonly
> or readonly mode.
Bah, how embarassing. Thanks!
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-25 10:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-25 10:00 [PATCH] backend: fix data direction flow check Dmitry Monakhov
2012-09-25 10:11 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox