public inbox for io-uring@vger.kernel.org
 help / color / mirror / Atom feed
* CQE repeats the first item?
@ 2025-10-05 20:21 Jacob Thompson
  2025-10-05 20:56 ` Jens Axboe
  0 siblings, 1 reply; 13+ messages in thread
From: Jacob Thompson @ 2025-10-05 20:21 UTC (permalink / raw)
  To: io-uring

I'm doing something wrong and I wanted to know if anyone knows what I did wrong from the description
I'm using syscalls to call io_uring_setup and io_uring_enter. I managed to submit 1 item without an issue but any more gets me the first item over and over again.
In my test I did a memset -1 on cqes and sqes, I memset 0 the first ten sqes with different user_data (0x1234 + i), and I used the opcode IORING_OP_NOP.
I called "io_uring_enter(fd, 10, 0, IORING_ENTER_SQ_WAKEUP, 0)" and looked at the cq. Item 11 has the user_data as '18446744073709551615' which is correct, but the first 10 all has user_data be 0x1234 which is weird AF since only one item has that user_data and I submited 10
I considered maybe the debugger was giving me incorrect values so I tried printing the user data in a loop, I have no idea why the first one repeats 10 times. I only called enter once

Id is 4660
Id is 4660
Id is 4660
Id is 4660
Id is 4660
Id is 4660
Id is 4660
Id is 4660
Id is 4660
Id is 4660
Id is 18446744073709551615


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-10-06 21:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-05 20:21 CQE repeats the first item? Jacob Thompson
2025-10-05 20:56 ` Jens Axboe
2025-10-05 21:54   ` Jacob Thompson
2025-10-06  1:09     ` Jens Axboe
2025-10-06  1:25       ` Jacob Thompson
2025-10-06  1:31         ` Jens Axboe
2025-10-06  1:36           ` Jens Axboe
2025-10-06  2:01           ` Jacob Thompson
2025-10-06 13:56             ` Jens Axboe
2025-10-06 21:45               ` Jacob Thompson
2025-10-06 21:58                 ` Jens Axboe
2025-10-05 22:10   ` Jacob Thompson
2025-10-06  1:10     ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox