From: Stefan Bühler Date: Wed, 24 Apr 2019 21:54:21 +0000 (+0200) Subject: io_uring: remove unnecessary barrier after incrementing dropped counter X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b841f19524a16cd93a39f9306191f85c549a2bc2;p=linux.git 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 Signed-off-by: Jens Axboe --- diff --git a/fs/io_uring.c b/fs/io_uring.c index 662f1c070c8cc..2ebc33cc907bf 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -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; }