Skip to content

Commit 82ab082

Browse files
stbuehleraxboe
authored andcommitted
io_uring: remove unnecessary barrier before reading SQ tail
There is no operation before to order with. Signed-off-by: Stefan Bühler <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 9e4c15a commit 82ab082

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/io_uring.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1831,8 +1831,6 @@ static bool io_get_sqring(struct io_ring_ctx *ctx, struct sqe_submit *s)
18311831
* though the application is the one updating it.
18321832
*/
18331833
head = ctx->cached_sq_head;
1834-
/* See comment at the top of this file */
1835-
smp_rmb();
18361834
/* make sure SQ entry isn't read before tail */
18371835
if (head == smp_load_acquire(&ring->r.tail))
18381836
return false;

0 commit comments

Comments
 (0)