io_uring: remove unnecessary barrier after incrementing dropped counter
authorStefan Bühler <source@stbuehler.de>
Wed, 24 Apr 2019 21:54:21 +0000 (23:54 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 30 Apr 2019 15:40:02 +0000 (09:40 -0600)
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 <source@stbuehler.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c

index 662f1c070c8cc1d5693c028ebe6816c72d4bdd4d..2ebc33cc907bfdd34d522f08ab95d49aa451c41b 100644 (file)
@@ -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;
 }