Skip to content

Commit a195778

Browse files
committed
io_uring: remove dead 'sqe' store
The kernel test robot correctly identifies that we store sqe twice, remove the earlier one that is done before validating the index. Fixes: f75d118 ("io_uring: harder fdinfo sq/cq ring iterating") Reported-by: kernel test robot <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 83956c8 commit a195778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/io_uring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10140,7 +10140,7 @@ static __cold void __io_uring_show_fdinfo(struct io_ring_ctx *ctx,
1014010140
for (i = 0; i < sq_entries; i++) {
1014110141
unsigned int entry = i + sq_head;
1014210142
unsigned int sq_idx = READ_ONCE(ctx->sq_array[entry & sq_mask]);
10143-
struct io_uring_sqe *sqe = &ctx->sq_sqes[sq_idx];
10143+
struct io_uring_sqe *sqe;
1014410144

1014510145
if (sq_idx > sq_mask)
1014610146
continue;

0 commit comments

Comments
 (0)