diff options
author | Stefan Bühler <source@stbuehler.de> | 2019-04-24 23:54:20 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-04-30 09:40:02 -0600 |
commit | 82ab082c0e2f8592c2ff6b2ab99a92d8406c8c2c (patch) | |
tree | 128f0d3f17503adff0d763f96bc6848f7e0418ca /fs/io_uring.c | |
parent | 9e4c15a3939448d2ea9b9bf59561183bbe3fdc49 (diff) | |
download | lwn-82ab082c0e2f8592c2ff6b2ab99a92d8406c8c2c.tar.gz lwn-82ab082c0e2f8592c2ff6b2ab99a92d8406c8c2c.zip |
io_uring: remove unnecessary barrier before reading SQ tail
There is no operation before to order with.
Signed-off-by: Stefan Bühler <source@stbuehler.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r-- | fs/io_uring.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index d3c57ee233fe..662f1c070c8c 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -1831,8 +1831,6 @@ static bool io_get_sqring(struct io_ring_ctx *ctx, struct sqe_submit *s) * though the application is the one updating it. */ head = ctx->cached_sq_head; - /* See comment at the top of this file */ - smp_rmb(); /* make sure SQ entry isn't read before tail */ if (head == smp_load_acquire(&ring->r.tail)) return false; |