| 288 | } |
| 289 | |
| 290 | static int test_io(const char *file, int write, int buffered, int sqthread, |
| 291 | int fixed, int nonvec, int exp_len, bool worker_offload) |
| 292 | { |
| 293 | struct io_uring ring; |
| 294 | int ret, ring_flags = 0; |
| 295 | |
| 296 | if (sqthread) |
| 297 | ring_flags = IORING_SETUP_SQPOLL; |
| 298 | |
| 299 | ret = t_create_ring(64, &ring, ring_flags); |
| 300 | if (ret == T_SETUP_SKIP) |
| 301 | return 0; |
| 302 | if (ret != T_SETUP_OK) { |
| 303 | fprintf(stderr, "ring create failed: %d\n", ret); |
| 304 | return 1; |
| 305 | } |
| 306 | |
| 307 | ret = __test_io(file, &ring, write, buffered, sqthread, fixed, nonvec, |
| 308 | 0, 0, exp_len, worker_offload); |
| 309 | io_uring_queue_exit(&ring); |
| 310 | return ret; |
| 311 | } |
| 312 | |
| 313 | static int read_poll_link(const char *file) |
| 314 | { |
no test coverage detected