diff mbox series

[barrier,cleanup,v1,4/7] io_uring: remove unnecessary barrier after updating SQ head

Message ID 20190424215422.7404-4-source@stbuehler.de (mailing list archive)
State Accepted, archived
Headers show
Series [barrier,cleanup,v1,1/7] io_uring: fix notes on barriers | expand

Commit Message

Stefan Bühler April 24, 2019, 9:54 p.m. UTC
There is no operation afterwards to order with.

Signed-off-by: Stefan Bühler <source@stbuehler.de>
---
 fs/io_uring.c | 6 ------
 1 file changed, 6 deletions(-)
diff mbox series

Patch

diff --git a/fs/io_uring.c b/fs/io_uring.c
index 2c101230df71..31357cc0e8e6 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -1795,12 +1795,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();
 	}
 }