mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
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>
This commit is contained in:
parent
dde92a5026
commit
0ecf0e6748
|
|
@ -96,8 +96,10 @@ static void __io_uring_show_fdinfo(struct io_ring_ctx *ctx, struct seq_file *m)
|
|||
u8 opcode;
|
||||
|
||||
if (ctx->flags & IORING_SETUP_NO_SQARRAY)
|
||||
break;
|
||||
sq_idx = READ_ONCE(ctx->sq_array[sq_head & sq_mask]);
|
||||
sq_idx = sq_head & sq_mask;
|
||||
else
|
||||
sq_idx = READ_ONCE(ctx->sq_array[sq_head & sq_mask]);
|
||||
|
||||
if (sq_idx > sq_mask)
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user