summaryrefslogtreecommitdiff
path: root/os/os-solaris.h
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2009-07-06 12:59:04 +0200
committerJens Axboe <jens.axboe@oracle.com>2009-07-06 12:59:04 +0200
commite8462bd8250cf3ff2d41f17e1a4d4cefc70b6b37 (patch)
treeb53396f58e03f2fa4584de3289beae8e786ef1cf /os/os-solaris.h
parent8f933caebc879fa06bb8d2d25802dd6f27da8071 (diff)
downloadfio-e8462bd8250cf3ff2d41f17e1a4d4cefc70b6b37.tar.gz
fio-e8462bd8250cf3ff2d41f17e1a4d4cefc70b6b37.tar.bz2
Add support for async IO verification offload
This adds support for setting up a number of IO verification offload threads, instead of doing the offload inline. An option for controlling the CPU affinity of those threads are always added. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'os/os-solaris.h')
-rw-r--r--os/os-solaris.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/os-solaris.h b/os/os-solaris.h
index b58d1308..56729565 100644
--- a/os/os-solaris.h
+++ b/os/os-solaris.h
@@ -69,8 +69,8 @@ static inline int fio_set_odirect(int fd)
/*
* pset binding hooks for fio
*/
-#define fio_setaffinity(td) \
- pset_bind((td)->o.cpumask, P_PID, (td)->pid, NULL)
+#define fio_setaffinity(pid, cpumask) \
+ pset_bind(&(cpumask), P_PID, (pid), NULL)
#define fio_getaffinity(pid, ptr) ({ 0; })
#define fio_cpu_clear(mask, cpu) pset_assign(PS_NONE, (cpu), NULL)