You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
646 B

  1. --- a/t/io_uring.c
  2. +++ b/t/io_uring.c
  3. @@ -63,7 +63,6 @@ struct file {
  4. struct submitter {
  5. pthread_t thread;
  6. int ring_fd;
  7. - struct drand48_data rand;
  8. struct io_sq_ring sq_ring;
  9. struct io_uring_sqe *sqes;
  10. struct io_cq_ring cq_ring;
  11. @@ -170,7 +169,7 @@ static void init_io(struct submitter *s, unsigned index)
  12. }
  13. f->pending_ios++;
  14. - lrand48_r(&s->rand, &r);
  15. + r = lrand48();
  16. offset = (r % (f->max_blocks - 1)) * BS;
  17. if (register_files) {
  18. @@ -286,7 +285,7 @@ static void *submitter_fn(void *data)
  19. printf("submitter=%d\n", gettid());
  20. - srand48_r(pthread_self(), &s->rand);
  21. + srand48(pthread_self());
  22. prepped = 0;
  23. do {