]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
io_uring: remove unnecessary barrier after updating SQ head
authorStefan Bühler <source@stbuehler.de>
Wed, 24 Apr 2019 21:54:19 +0000 (23:54 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 30 Apr 2019 15:40:02 +0000 (09:40 -0600)
There is no operation afterwards to order with.

Signed-off-by: Stefan Bühler <source@stbuehler.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c

index 3671a654a146970c9063fb6abd883e284e052752..d3c57ee233fe78d5f64e600a0e5c8019306b5292 100644 (file)
@@ -1798,12 +1798,6 @@ static void io_commit_sqring(struct io_ring_ctx *ctx)
                 * write new data to them.
                 */
                smp_store_release(&ring->r.head, ctx->cached_sq_head);
-
-               /*
-                * write side barrier of head update, app has read side. See
-                * comment at the top of this file
-                */
-               smp_wmb();
        }
 }