Commit 82ab082c authored by Stefan Bühler's avatar Stefan Bühler Committed by Jens Axboe

io_uring: remove unnecessary barrier before reading SQ tail

There is no operation before to order with.
Signed-off-by: default avatarStefan Bühler <source@stbuehler.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 9e4c15a3
...@@ -1831,8 +1831,6 @@ static bool io_get_sqring(struct io_ring_ctx *ctx, struct sqe_submit *s) ...@@ -1831,8 +1831,6 @@ static bool io_get_sqring(struct io_ring_ctx *ctx, struct sqe_submit *s)
* though the application is the one updating it. * though the application is the one updating it.
*/ */
head = ctx->cached_sq_head; head = ctx->cached_sq_head;
/* See comment at the top of this file */
smp_rmb();
/* make sure SQ entry isn't read before tail */ /* make sure SQ entry isn't read before tail */
if (head == smp_load_acquire(&ring->r.tail)) if (head == smp_load_acquire(&ring->r.tail))
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment