commit | 375b2695693f56987e23deef3ded8e5b06ef6797 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Tue May 22 09:13:02 2007 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Tue May 22 09:13:02 2007 +0200 |
tree | 64da180f09c0ae4c759c7142beb70408468f614a | |
parent | c97d8369f04e562383f50a77a2b0e2abb102df75 [diff] [blame] |
Fix cpumask setting/getting on older kernels Don't call into the affinity functions, unless the user has specified a mask. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.c b/fio.c index 0c297f7..6483e64 100644 --- a/fio.c +++ b/fio.c
@@ -792,7 +792,7 @@ if (init_io_u(td)) goto err; - if (fio_setaffinity(td) == -1) { + if (td->o.cpumask_set && fio_setaffinity(td) == -1) { td_verror(td, errno, "cpu_set_affinity"); goto err; }