Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring/fdinfo: show SQEs for no array setup

The sq_head indicates the index directly in the submission queue when
the IORING_SETUP_NO_SQARRAY option is used, so use that instead of
skipping showing the entries.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Keith Busch and committed by
Jens Axboe
0ecf0e67 dde92a50

+4 -2
+4 -2
io_uring/fdinfo.c
··· 96 96 u8 opcode; 97 97 98 98 if (ctx->flags & IORING_SETUP_NO_SQARRAY) 99 - break; 100 - sq_idx = READ_ONCE(ctx->sq_array[sq_head & sq_mask]); 99 + sq_idx = sq_head & sq_mask; 100 + else 101 + sq_idx = READ_ONCE(ctx->sq_array[sq_head & sq_mask]); 102 + 101 103 if (sq_idx > sq_mask) 102 104 continue; 103 105