diff options
author | Jens Axboe <axboe@kernel.dk> | 2021-11-05 09:31:05 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-11-05 09:31:05 -0600 |
commit | a19577808fd33d9e64e015808fbca2769a96721b (patch) | |
tree | b0736c43cbec5bb86509190abb157428c327d7d8 /fs/io_uring.c | |
parent | 83956c86fffe0465408c7d62e925d88748075e00 (diff) | |
download | linux-a19577808fd33d9e64e015808fbca2769a96721b.tar.bz2 |
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 <lkp@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r-- | fs/io_uring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index 1c8602f12c91..ac1bc8ac4666 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; |