X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=io_u.c;h=fd63119888327fff8705bbdef066b910d8f37d1e;hb=052046a1e92bff19ecae277670a59fb726a66b86;hp=88f35c916078f8d92f2e50ff70eef3a88b0f46a1;hpb=b94d4d75a2e474561dcda8ee852cd5e67dde884e;p=fio.git diff --git a/io_u.c b/io_u.c index 88f35c91..fd631198 100644 --- a/io_u.c +++ b/io_u.c @@ -1674,8 +1674,10 @@ out: if (!td_io_prep(td, io_u)) { if (!td->o.disable_lat) fio_gettime(&io_u->start_time, NULL); + if (do_scramble) small_content_scramble(io_u); + return io_u; } err_put: @@ -2043,6 +2045,9 @@ void fill_io_buffer(struct thread_data *td, void *buf, unsigned int min_write, { struct thread_options *o = &td->o; + if (o->mem_type == MEM_CUDA_MALLOC) + return; + if (o->compress_percentage || o->dedupe_percentage) { unsigned int perc = td->o.compress_percentage; struct frand_state *rs;