From patchwork Mon Jul 1 21:42:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 11026767 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DFA3313B1 for ; Mon, 1 Jul 2019 21:42:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D37F728765 for ; Mon, 1 Jul 2019 21:42:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C75E128786; Mon, 1 Jul 2019 21:42:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6646028765 for ; Mon, 1 Jul 2019 21:42:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726930AbfGAVml (ORCPT ); Mon, 1 Jul 2019 17:42:41 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:36767 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726678AbfGAVml (ORCPT ); Mon, 1 Jul 2019 17:42:41 -0400 Received: by mail-pf1-f193.google.com with SMTP id r7so7195890pfl.3 for ; Mon, 01 Jul 2019 14:42:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bG2LnbMYvOccRlx7DVirIuQd/L6sa/tQjdqObHdreCA=; b=Vr9H2tpVMnL1o+oN0BZ7y0mIkcYpARjHtEfyBMF+wt0b1E+MlncOsUZ/CGNFtKG4jE UCNw1OtsVBM1VP7KhV8KznitwMhgIa/y8I/NlsbrPRkQa/xGfab26KxuCl81hoHyaKza coJaHPqSxWB3qknYazvN3GST8OEjww8o8sh3sdU1EOZu8E8uN5EJV2blBMmA91o/WW0I xOe0zDFt4nWGFVlRh8FUV4VYPhl6DyRGo35UgcAUNjte8ZKwCQ7ZPKYknT/uF1x3YVLx qkfsO6ZFSdo0ZyuIBoSfCJ+De1wYfRwiKQUwRR/Z6Cb6F/hwANDWbdmLM1uLn+V+ecAw Ay6g== X-Gm-Message-State: APjAAAWF04eSNyUfxVbk/uA3r4maKWM5O8lKMq5ahBOby2a8MVc7Ak6T kPwTZnh6bkDMmpyk7LDD0ro= X-Google-Smtp-Source: APXvYqy3QL7jbJGnY4KnDegZZAKXOlMdVMYNJxp9DmPMnaGQhVc1NJAoA/T74OmkXDz/ZSZKpCvmVQ== X-Received: by 2002:a17:90a:20c6:: with SMTP id f64mr1558449pjg.57.1562017360512; Mon, 01 Jul 2019 14:42:40 -0700 (PDT) Received: from desktop-bart.svl.corp.google.com ([2620:15c:2cd:202:4308:52a3:24b6:2c60]) by smtp.gmail.com with ESMTPSA id c83sm15892282pfb.111.2019.07.01.14.42.39 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 01 Jul 2019 14:42:39 -0700 (PDT) From: Bart Van Assche To: Jens Axboe Cc: linux-block@vger.kernel.org, Bart Van Assche Subject: [PATCH liburing 0/2] Memory synchronization improvements Date: Mon, 1 Jul 2019 14:42:30 -0700 Message-Id: <20190701214232.29338-1-bvanassche@acm.org> X-Mailer: git-send-email 2.22.0.410.gd8fdbe21b5-goog MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Jens, The two patches in this series reduce the number of memory barrier calls from liburing and also fix a few memory synchronization bugs. Please consider these patches for the official liburing git repository. Thanks, Bart. Bart Van Assche (2): __io_uring_get_cqe(): Use io_uring_for_each_cqe() Fix the use of memory barriers man/io_uring_setup.2 | 6 ++- src/barrier.h | 87 +++++++++++++++++++++++++++++++++++++++++-- src/liburing.h | 15 +++----- src/queue.c | 48 ++++++------------------ test/io_uring_enter.c | 8 ++-- 5 files changed, 110 insertions(+), 54 deletions(-)