We set it by default, which seems like a bad idea. If the issuing
thread is running on some other CPU, we don't want to bind this
to what is probably CPU0.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
ctx->wd = wd;
wd->iothread = CreateThread(NULL, 0, IoCompletionRoutine, ctx, 0, &threadid);
- if (wd->iothread != NULL)
+ if (wd->iothread != NULL &&
+ fio_option_is_set(&td->o, cpumask))
fio_setaffinity(threadid, td->o.cpumask);
else
log_err("windowsaio: failed to create io completion thread\n");