Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 1 | /* |
Jens Axboe | da751ca | 2007-03-14 10:59:33 +0100 | [diff] [blame] | 2 | * syslet engine |
| 3 | * |
| 4 | * IO engine that does regular pread(2)/pwrite(2) to transfer data, but |
| 5 | * with syslets to make the execution async. |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 6 | * |
| 7 | */ |
| 8 | #include <stdio.h> |
| 9 | #include <stdlib.h> |
| 10 | #include <unistd.h> |
| 11 | #include <errno.h> |
| 12 | #include <assert.h> |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 13 | #include <malloc.h> |
Jens Axboe | b884635 | 2007-03-14 14:29:16 +0100 | [diff] [blame] | 14 | #include <asm/unistd.h> |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 15 | |
| 16 | #include "../fio.h" |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 17 | #include "../indirect.h" |
| 18 | #include "../syslet.h" |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 19 | |
| 20 | #ifdef FIO_HAVE_SYSLET |
| 21 | |
Jens Axboe | 1760e67 | 2007-03-14 20:41:42 +0100 | [diff] [blame] | 22 | #ifdef __NR_pread64 |
| 23 | #define __NR_fio_pread __NR_pread64 |
| 24 | #define __NR_fio_pwrite __NR_pwrite64 |
| 25 | #else |
| 26 | #define __NR_fio_pread __NR_pread |
| 27 | #define __NR_fio_pwrite __NR_pwrite |
| 28 | #endif |
| 29 | |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 30 | struct syslet_data { |
| 31 | struct io_u **events; |
| 32 | unsigned int nr_events; |
| 33 | |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 34 | struct syslet_ring *ring; |
Jens Axboe | db6defc | 2007-12-11 08:55:53 +0100 | [diff] [blame^] | 35 | unsigned int ring_mask; |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 36 | void *stack; |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 37 | }; |
| 38 | |
Jens Axboe | c6effc3 | 2007-12-11 08:46:16 +0100 | [diff] [blame] | 39 | static void fio_syslet_add_event(struct thread_data *td, struct io_u *io_u) |
Jens Axboe | 9ff9de6 | 2007-02-23 13:21:45 +0100 | [diff] [blame] | 40 | { |
| 41 | struct syslet_data *sd = td->io_ops->data; |
Jens Axboe | 9ff9de6 | 2007-02-23 13:21:45 +0100 | [diff] [blame] | 42 | |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 43 | assert(sd->nr_events < td->o.iodepth); |
| 44 | sd->events[sd->nr_events++] = io_u; |
Jens Axboe | 9ff9de6 | 2007-02-23 13:21:45 +0100 | [diff] [blame] | 45 | } |
| 46 | |
Jens Axboe | c6effc3 | 2007-12-11 08:46:16 +0100 | [diff] [blame] | 47 | static void fio_syslet_add_events(struct thread_data *td, unsigned int nr) |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 48 | { |
| 49 | struct syslet_data *sd = td->io_ops->data; |
Jens Axboe | db6defc | 2007-12-11 08:55:53 +0100 | [diff] [blame^] | 50 | unsigned int i, uidx; |
| 51 | |
| 52 | uidx = sd->ring->user_tail; |
| 53 | read_barrier(); |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 54 | |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 55 | for (i = 0; i < nr; i++) { |
Jens Axboe | db6defc | 2007-12-11 08:55:53 +0100 | [diff] [blame^] | 56 | unsigned int idx = (i + uidx) & sd->ring_mask; |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 57 | struct syslet_completion *comp = &sd->ring->comp[idx]; |
| 58 | struct io_u *io_u = (struct io_u *) (long) comp->caller_data; |
Jens Axboe | c6effc3 | 2007-12-11 08:46:16 +0100 | [diff] [blame] | 59 | long ret; |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 60 | |
Jens Axboe | c6effc3 | 2007-12-11 08:46:16 +0100 | [diff] [blame] | 61 | ret = comp->status; |
| 62 | if (ret <= 0) { |
| 63 | io_u->resid = io_u->xfer_buflen; |
| 64 | io_u->error = -ret; |
| 65 | } else { |
| 66 | io_u->resid = io_u->xfer_buflen - ret; |
| 67 | io_u->error = 0; |
| 68 | } |
| 69 | |
| 70 | fio_syslet_add_event(td, io_u); |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 71 | } |
| 72 | } |
| 73 | |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 74 | static void fio_syslet_wait_for_events(struct thread_data *td) |
| 75 | { |
| 76 | struct syslet_data *sd = td->io_ops->data; |
| 77 | struct syslet_ring *ring = sd->ring; |
| 78 | unsigned int events; |
| 79 | |
| 80 | events = 0; |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 81 | do { |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 82 | unsigned int kh = ring->kernel_head; |
| 83 | int ret; |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 84 | |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 85 | /* |
| 86 | * first reap events that are already completed |
| 87 | */ |
| 88 | if (ring->user_tail != kh) { |
| 89 | unsigned int nr = kh - ring->user_tail; |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 90 | |
Jens Axboe | c6effc3 | 2007-12-11 08:46:16 +0100 | [diff] [blame] | 91 | fio_syslet_add_events(td, nr); |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 92 | events += nr; |
| 93 | ring->user_tail = kh; |
| 94 | continue; |
| 95 | } |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 96 | |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 97 | /* |
| 98 | * block waiting for at least one event |
| 99 | */ |
| 100 | ret = syscall(__NR_syslet_ring_wait, ring, ring->user_tail); |
| 101 | assert(!ret); |
| 102 | } while (!events); |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 103 | } |
| 104 | |
| 105 | static int fio_syslet_getevents(struct thread_data *td, int min, |
| 106 | int fio_unused max, |
| 107 | struct timespec fio_unused *t) |
| 108 | { |
| 109 | struct syslet_data *sd = td->io_ops->data; |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 110 | long ret; |
| 111 | |
| 112 | do { |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 113 | /* |
| 114 | * do we have enough immediate completions? |
| 115 | */ |
| 116 | if (sd->nr_events >= (unsigned int) min) |
| 117 | break; |
| 118 | |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 119 | fio_syslet_wait_for_events(td); |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 120 | } while (1); |
| 121 | |
| 122 | ret = sd->nr_events; |
| 123 | sd->nr_events = 0; |
| 124 | return ret; |
| 125 | } |
| 126 | |
| 127 | static struct io_u *fio_syslet_event(struct thread_data *td, int event) |
| 128 | { |
| 129 | struct syslet_data *sd = td->io_ops->data; |
| 130 | |
| 131 | return sd->events[event]; |
| 132 | } |
| 133 | |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 134 | static void fio_syslet_prep_sync(struct fio_file *f, |
| 135 | struct indirect_registers *regs) |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 136 | { |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 137 | FILL_IN(*regs, __NR_fsync, (long) f->fd); |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 138 | } |
| 139 | |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 140 | static void fio_syslet_prep_rw(struct io_u *io_u, struct fio_file *f, |
| 141 | struct indirect_registers *regs) |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 142 | { |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 143 | long nr; |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 144 | |
| 145 | /* |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 146 | * prepare rw |
| 147 | */ |
| 148 | if (io_u->ddir == DDIR_READ) |
Jens Axboe | 1760e67 | 2007-03-14 20:41:42 +0100 | [diff] [blame] | 149 | nr = __NR_fio_pread; |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 150 | else |
Jens Axboe | 1760e67 | 2007-03-14 20:41:42 +0100 | [diff] [blame] | 151 | nr = __NR_fio_pwrite; |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 152 | |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 153 | FILL_IN(*regs, nr, (long) f->fd, (long) io_u->xfer_buf, |
| 154 | (long) io_u->xfer_buflen, (long) io_u->offset); |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 155 | } |
| 156 | |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 157 | static void fio_syslet_prep(struct io_u *io_u, struct indirect_registers *regs) |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 158 | { |
| 159 | struct fio_file *f = io_u->file; |
| 160 | |
| 161 | if (io_u->ddir == DDIR_SYNC) |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 162 | fio_syslet_prep_sync(f, regs); |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 163 | else |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 164 | fio_syslet_prep_rw(io_u, f, regs); |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 165 | } |
| 166 | |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 167 | static void ret_func(void) |
Ingo Molnar | bf0dc8f | 2007-02-21 23:25:44 +0100 | [diff] [blame] | 168 | { |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 169 | syscall(__NR_exit); |
Jens Axboe | 9ff9de6 | 2007-02-23 13:21:45 +0100 | [diff] [blame] | 170 | } |
Ingo Molnar | bf0dc8f | 2007-02-21 23:25:44 +0100 | [diff] [blame] | 171 | |
Jens Axboe | 9ff9de6 | 2007-02-23 13:21:45 +0100 | [diff] [blame] | 172 | static int fio_syslet_queue(struct thread_data *td, struct io_u *io_u) |
| 173 | { |
| 174 | struct syslet_data *sd = td->io_ops->data; |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 175 | union indirect_params params; |
| 176 | struct indirect_registers regs; |
| 177 | int ret; |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 178 | |
Jens Axboe | 7101d9c | 2007-09-12 13:12:39 +0200 | [diff] [blame] | 179 | fio_ro_check(td, io_u); |
| 180 | |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 181 | memset(¶ms, 0, sizeof(params)); |
| 182 | fill_syslet_args(¶ms.syslet, sd->ring, (long)io_u, ret_func, sd->stack); |
Jens Axboe | 9ff9de6 | 2007-02-23 13:21:45 +0100 | [diff] [blame] | 183 | |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 184 | fio_syslet_prep(io_u, ®s); |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 185 | |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 186 | ret = syscall(__NR_indirect, ®s, ¶ms, sizeof(params), 0); |
| 187 | if (ret == (int) io_u->xfer_buflen) { |
| 188 | /* |
| 189 | * completed sync, account. this also catches fsync(). |
| 190 | */ |
| 191 | return FIO_Q_COMPLETED; |
| 192 | } else if (ret < 0) { |
| 193 | /* |
| 194 | * queued for async execution |
| 195 | */ |
| 196 | if (errno == ESYSLETPENDING) |
| 197 | return FIO_Q_QUEUED; |
| 198 | } |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 199 | |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 200 | io_u->error = errno; |
| 201 | td_verror(td, io_u->error, "xfer"); |
| 202 | return FIO_Q_COMPLETED; |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 203 | } |
| 204 | |
Jens Axboe | 76f58b9 | 2007-03-29 13:26:17 +0200 | [diff] [blame] | 205 | static int check_syslet_support(struct syslet_data *sd) |
| 206 | { |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 207 | union indirect_params params; |
| 208 | struct indirect_registers regs; |
| 209 | pid_t pid, my_pid = getpid(); |
Jens Axboe | 76f58b9 | 2007-03-29 13:26:17 +0200 | [diff] [blame] | 210 | |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 211 | memset(¶ms, 0, sizeof(params)); |
| 212 | fill_syslet_args(¶ms.syslet, sd->ring, 0, ret_func, sd->stack); |
Jens Axboe | 76f58b9 | 2007-03-29 13:26:17 +0200 | [diff] [blame] | 213 | |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 214 | FILL_IN(regs, __NR_getpid); |
| 215 | |
| 216 | pid = syscall(__NR_indirect, ®s, ¶ms, sizeof(params), 0); |
| 217 | if (pid == my_pid) |
| 218 | return 0; |
| 219 | |
| 220 | return 1; |
Jens Axboe | 76f58b9 | 2007-03-29 13:26:17 +0200 | [diff] [blame] | 221 | } |
| 222 | |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 223 | static void fio_syslet_cleanup(struct thread_data *td) |
| 224 | { |
| 225 | struct syslet_data *sd = td->io_ops->data; |
| 226 | |
| 227 | if (sd) { |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 228 | free(sd->events); |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 229 | free(sd->ring); |
| 230 | free(sd->stack); |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 231 | free(sd); |
| 232 | td->io_ops->data = NULL; |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | static int fio_syslet_init(struct thread_data *td) |
| 237 | { |
| 238 | struct syslet_data *sd; |
Jens Axboe | e81f734 | 2007-12-10 20:35:10 +0100 | [diff] [blame] | 239 | void *ring = NULL, *stack = NULL; |
Jens Axboe | 05f6a17 | 2007-12-11 08:22:53 +0100 | [diff] [blame] | 240 | unsigned int ring_size, ring_nr; |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 241 | |
| 242 | sd = malloc(sizeof(*sd)); |
| 243 | memset(sd, 0, sizeof(*sd)); |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 244 | |
Jens Axboe | 2dc1bbe | 2007-03-15 15:01:33 +0100 | [diff] [blame] | 245 | sd->events = malloc(sizeof(struct io_u *) * td->o.iodepth); |
| 246 | memset(sd->events, 0, sizeof(struct io_u *) * td->o.iodepth); |
Jens Axboe | 05f6a17 | 2007-12-11 08:22:53 +0100 | [diff] [blame] | 247 | |
| 248 | /* |
| 249 | * The ring needs to be a power-of-2, so round it up if we have to |
| 250 | */ |
| 251 | ring_nr = td->o.iodepth; |
| 252 | if (ring_nr & (ring_nr - 1)) { |
| 253 | int bits = 1; |
| 254 | |
| 255 | while (ring_nr >>= 1) |
| 256 | bits++; |
| 257 | |
| 258 | ring_nr = 1 << bits; |
| 259 | } |
| 260 | |
| 261 | ring_size = sizeof(struct syslet_ring) + |
| 262 | ring_nr * sizeof(struct syslet_completion); |
| 263 | if (posix_memalign(&ring, sizeof(uint64_t), ring_size)) |
Jens Axboe | e81f734 | 2007-12-10 20:35:10 +0100 | [diff] [blame] | 264 | goto err_mem; |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 265 | if (posix_memalign(&stack, page_size, page_size)) |
Jens Axboe | e81f734 | 2007-12-10 20:35:10 +0100 | [diff] [blame] | 266 | goto err_mem; |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 267 | |
| 268 | sd->ring = ring; |
Jens Axboe | db6defc | 2007-12-11 08:55:53 +0100 | [diff] [blame^] | 269 | sd->ring_mask = ring_nr - 1; |
Jens Axboe | 12cbb46 | 2007-12-10 20:24:44 +0100 | [diff] [blame] | 270 | sd->stack = stack; |
| 271 | |
Jens Axboe | 05f6a17 | 2007-12-11 08:22:53 +0100 | [diff] [blame] | 272 | memset(sd->ring, 0, ring_size); |
| 273 | sd->ring->elements = ring_nr; |
Jens Axboe | db64e9b | 2007-02-14 02:10:59 +0100 | [diff] [blame] | 274 | |
Jens Axboe | e81f734 | 2007-12-10 20:35:10 +0100 | [diff] [blame] | 275 | if (!check_syslet_support(sd)) { |
| 276 | td->io_ops->data = sd; |
| 277 | return 0; |
Jens Axboe | 76f58b9 | 2007-03-29 13:26:17 +0200 | [diff] [blame] | 278 | } |
| 279 | |
Jens Axboe | e81f734 | 2007-12-10 20:35:10 +0100 | [diff] [blame] | 280 | log_err("fio: syslets do not appear to work\n"); |
| 281 | err_mem: |
| 282 | free(sd->events); |
| 283 | if (ring) |
| 284 | free(ring); |
| 285 | if (stack) |
| 286 | free(stack); |
| 287 | free(sd); |
| 288 | return 1; |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 289 | } |
| 290 | |
| 291 | static struct ioengine_ops ioengine = { |
| 292 | .name = "syslet-rw", |
| 293 | .version = FIO_IOOPS_VERSION, |
| 294 | .init = fio_syslet_init, |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 295 | .queue = fio_syslet_queue, |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 296 | .getevents = fio_syslet_getevents, |
| 297 | .event = fio_syslet_event, |
| 298 | .cleanup = fio_syslet_cleanup, |
Jens Axboe | b5af829 | 2007-03-08 12:43:13 +0100 | [diff] [blame] | 299 | .open_file = generic_open_file, |
| 300 | .close_file = generic_close_file, |
Jens Axboe | a4f4fdd | 2007-02-14 01:16:39 +0100 | [diff] [blame] | 301 | }; |
| 302 | |
| 303 | #else /* FIO_HAVE_SYSLET */ |
| 304 | |
| 305 | /* |
| 306 | * When we have a proper configure system in place, we simply wont build |
| 307 | * and install this io engine. For now install a crippled version that |
| 308 | * just complains and fails to load. |
| 309 | */ |
| 310 | static int fio_syslet_init(struct thread_data fio_unused *td) |
| 311 | { |
| 312 | fprintf(stderr, "fio: syslet not available\n"); |
| 313 | return 1; |
| 314 | } |
| 315 | |
| 316 | static struct ioengine_ops ioengine = { |
| 317 | .name = "syslet-rw", |
| 318 | .version = FIO_IOOPS_VERSION, |
| 319 | .init = fio_syslet_init, |
| 320 | }; |
| 321 | |
| 322 | #endif /* FIO_HAVE_SYSLET */ |
| 323 | |
| 324 | static void fio_init fio_syslet_register(void) |
| 325 | { |
| 326 | register_ioengine(&ioengine); |
| 327 | } |
| 328 | |
| 329 | static void fio_exit fio_syslet_unregister(void) |
| 330 | { |
| 331 | unregister_ioengine(&ioengine); |
| 332 | } |