commit | f48b467cba78af0843c7320caf841e2bee72fb1e | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Fri Oct 27 11:30:07 2006 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Fri Oct 27 11:30:07 2006 +0200 |
tree | 413f8abda1bc97c7ce859761f3c283a098ac257e | |
parent | 076efc7c60c351df783960a646e7fe8fba29dc19 [diff] [blame] |
[PATCH cpu io threads need not have lots of stuff setup Everything that has to do with io can be skipped. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/init.c b/init.c index f27fdf1..b0c35f1 100644 --- a/init.c +++ b/init.c
@@ -604,6 +604,9 @@ int fd, num_maps, blocks, i; struct fio_file *f; + if (td->io_ops->flags & FIO_CPUIO) + return 0; + fd = open("/dev/urandom", O_RDONLY); if (fd == -1) { td_verror(td, errno);