summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Bühler <source@stbuehler.de>2019-04-24 23:54:21 +0200
committerJens Axboe <axboe@kernel.dk>2019-04-30 09:40:02 -0600
commitb841f19524a16cd93a39f9306191f85c549a2bc2 (patch)
tree6ed94a8b3e74f6b97a7e95ad4a6bdb386f45cc6b
parent82ab082c0e2f8592c2ff6b2ab99a92d8406c8c2c (diff)
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 <source@stbuehler.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--fs/io_uring.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index 662f1c070c8c..2ebc33cc907b 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;
}