t/io_uring: update for new DMA map buffers API
authorJens Axboe <axboe@kernel.dk>
Wed, 13 Oct 2021 00:41:14 +0000 (18:41 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 13 Oct 2021 00:41:14 +0000 (18:41 -0600)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c

index 3edb3c34d92af32584b295194c2aa1c03660df9d..84960ba9310270330c2faa5f6059ee49b3940929 100644 (file)
@@ -137,7 +137,8 @@ struct io_uring_map_buffers {
        __s32   fd;
        __u32   buf_start;
        __u32   buf_end;
-       __u32   dir;
+       __u32   flags;
+       __u64   rsvd[2];
 };
 #endif
 
@@ -334,9 +335,7 @@ static int io_uring_map_buffers(struct submitter *s)
 {
        struct io_uring_map_buffers map = {
                .fd             = s->files[0].real_fd,
-               .buf_start      = 0,
                .buf_end        = depth,
-               .dir            = 0,
        };
 
        if (do_nop)