mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-26 20:58:33 +00:00
io_uring: remove unnecessary barrier before reading SQ tail
There is no operation before to order with. Signed-off-by: Stefan Bühler <source@stbuehler.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
9e4c15a393
commit
82ab082c0e
@ -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.
|
||||
*/
|
||||
head = ctx->cached_sq_head;
|
||||
/* See comment at the top of this file */
|
||||
smp_rmb();
|
||||
/* make sure SQ entry isn't read before tail */
|
||||
if (head == smp_load_acquire(&ring->r.tail))
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user