From: Jens Axboe Date: Fri, 5 Nov 2021 15:31:05 +0000 (-0600) Subject: io_uring: remove dead 'sqe' store X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a19577808fd33d9e64e015808fbca2769a96721b;p=linux.git 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: f75d118349be ("io_uring: harder fdinfo sq/cq ring iterating") Reported-by: kernel test robot Signed-off-by: Jens Axboe --- diff --git a/fs/io_uring.c b/fs/io_uring.c index 1c8602f12c911..ac1bc8ac4666d 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -10140,7 +10140,7 @@ static __cold void __io_uring_show_fdinfo(struct io_ring_ctx *ctx, for (i = 0; i < sq_entries; i++) { unsigned int entry = i + sq_head; unsigned int sq_idx = READ_ONCE(ctx->sq_array[entry & sq_mask]); - struct io_uring_sqe *sqe = &ctx->sq_sqes[sq_idx]; + struct io_uring_sqe *sqe; if (sq_idx > sq_mask) continue;