提交 f1319b35 编写于 作者: S Stefan Bühler 提交者: Cheng Jian

io_uring: remove unnecessary barrier after updating SQ head

mainline inclusion
from mainline-5.1
commit 9e4c15a3
category: feature
bugzilla: https://bugzilla.openeuler.org/show_bug.cgi?id=27
CVE: NA
---------------------------

There is no operation afterwards to order with.
Signed-off-by: NStefan Bühler <source@stbuehler.de>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
Signed-off-by: NZhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Nyangerkun <yangerkun@huawei.com>
Reviewed-by: Nzhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: NCheng Jian <cj.chengjian@huawei.com>
上级 4556c816
...@@ -1795,12 +1795,6 @@ static void io_commit_sqring(struct io_ring_ctx *ctx) ...@@ -1795,12 +1795,6 @@ static void io_commit_sqring(struct io_ring_ctx *ctx)
* write new data to them. * write new data to them.
*/ */
smp_store_release(&ring->r.head, ctx->cached_sq_head); 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();
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册