Commit b841f195 authored by Stefan Bühler's avatar Stefan Bühler Committed by Jens Axboe
Browse files

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: default avatarStefan Bühler <source@stbuehler.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 82ab082c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1846,8 +1846,6 @@ static bool io_get_sqring(struct io_ring_ctx *ctx, struct sqe_submit *s)
	/* drop invalid entries */
	ctx->cached_sq_head++;
	ring->dropped++;
	/* See comment at the top of this file */
	smp_wmb();
	return false;
}