aioring: make sq/cqring_offsets a bit more future proof
authorJens Axboe <axboe@kernel.dk>
Sat, 5 Jan 2019 14:37:02 +0000 (07:37 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 5 Jan 2019 14:37:02 +0000 (07:37 -0700)
And include 'dropped' as well.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/aioring.c
t/aio-ring.c

index ca60b281442e92f005f56fb6583d64c371ae7765..8cecb6ad2b3d97a49d076ff654467842dd5f30b0 100644 (file)
@@ -68,7 +68,9 @@ struct aio_sqring_offsets {
        u32 ring_mask;
        u32 ring_entries;
        u32 flags;
+       u32 dropped;
        u32 array;
+       u32 resv[3];
 };
 
 struct aio_cqring_offsets {
@@ -78,6 +80,7 @@ struct aio_cqring_offsets {
        u32 ring_entries;
        u32 overflow;
        u32 events;
+       u32 resv[4];
 };
 
 struct aio_uring_params {
index 71978c6835d6608829204dedea3ef332603fb847..7e118e57d8455658f9ee246767ef45e1b922406b 100644 (file)
@@ -52,7 +52,9 @@ struct aio_sqring_offsets {
        u32 ring_mask;
        u32 ring_entries;
        u32 flags;
+       u32 dropped;
        u32 array;
+       u32 resv[3];
 };
 
 struct aio_cqring_offsets {
@@ -62,6 +64,7 @@ struct aio_cqring_offsets {
        u32 ring_entries;
        u32 overflow;
        u32 events;
+       u32 resv[4];
 };
 
 struct aio_uring_params {