Skip to content

Commit b841f19

Browse files
stbuehleraxboe
authored andcommitted
io_uring: remove unnecessary barrier after incrementing dropped counter
smp_store_release in io_commit_sqring already orders the store to dropped before the update to SQ head. Signed-off-by: Stefan Bühler <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 82ab082 commit b841f19

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
@@ -1846,8 +1846,6 @@ static bool io_get_sqring(struct io_ring_ctx *ctx, struct sqe_submit *s)
18461846
/* drop invalid entries */
18471847
ctx->cached_sq_head++;
18481848
ring->dropped++;
1849-
/* See comment at the top of this file */
1850-
smp_wmb();
18511849
return false;
18521850
}
18531851

0 commit comments

Comments
 (0)