]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
Fix up botched backport of io_uring-fix-broken-links-with-offloading.patch
authorSasha Levin <sashal@kernel.org>
Sun, 27 Oct 2019 09:05:24 +0000 (05:05 -0400)
committerSasha Levin <sashal@kernel.org>
Sun, 27 Oct 2019 09:06:02 +0000 (05:06 -0400)
Signed-off-by: Sasha Levin <sashal@kernel.org>
queue-5.3/io_uring-fix-broken-links-with-offloading.patch

index bc6e093e620195c18201b08ef11d4982f5c22121..1aefed2f0fe4d013b27243dcb0b0ec8bd7426157 100644 (file)
@@ -35,10 +35,10 @@ index 79f9c9f7b298e..518042cc6628b 100644
  
 +static inline unsigned int io_sqring_entries(struct io_ring_ctx *ctx)
 +{
-+      struct io_rings *rings = ctx->rings;
++      struct io_sq_ring *ring = ctx->sq_ring;
 +
 +      /* make sure SQ entry isn't read before tail */
-+      return smp_load_acquire(&rings->sq.tail) - ctx->cached_sq_head;
++      return smp_load_acquire(&ring->r.tail) - ctx->cached_sq_head;
 +}
 +
  /*