From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0D7EC433F5 for ; Fri, 4 Feb 2022 16:19:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356409AbiBDQT1 (ORCPT ); Fri, 4 Feb 2022 11:19:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235279AbiBDQT0 (ORCPT ); Fri, 4 Feb 2022 11:19:26 -0500 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 247B3C06173D for ; Fri, 4 Feb 2022 08:19:26 -0800 (PST) Received: by mail-io1-xd35.google.com with SMTP id e79so7896038iof.13 for ; Fri, 04 Feb 2022 08:19:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=from:to:cc:in-reply-to:references:subject:message-id:date :mime-version:content-transfer-encoding; bh=xWqbg7HKWafttkcHGFcWJczC+YjsUZmrSZqnk9ayHeU=; b=brvYI80Lp/yn7dYipZqdtSGUx265nCvxweZdD1SYHwjAR7hTqA9NNGpvOiJ6Wri1Tg +PHBf9asrFKsnDzbFxOrolmY3iLvmFgrODiHVCehOswoCQpI0Hu7CAtONmgxh7PV1yAt sjbyuOwJLz66MoocMVcUwTCNsr3DakZM3QjgcOhtUp3P6H5bJ3Ay/IRcbB7Rg9A0vRNT KT1219eK5RbZyGbUuvmBNgzld+kPKi5BzUFoWkBdeDu+UYeT64rjs00EJ7Fv5z3bB78A QsHxwoM3GbYHGnp0HxvKpr3AmMlJZMm74sCaJZD5QLZqF21JJXIziT/rHekUMJ1YvebF u+Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:in-reply-to:references:subject :message-id:date:mime-version:content-transfer-encoding; bh=xWqbg7HKWafttkcHGFcWJczC+YjsUZmrSZqnk9ayHeU=; b=bvx+H/374L3UwCUgcHTKYKix4/kFFK39VWrKpUOPE7Kq9RSByz7BI7EiuaoTZHRnaV z3YwI6JWq1j6BPCNb7ERbjG+MPr93sdKLT8RzoAjg9fhe+63jeOyEjyluDHdCvHX3CT+ QE1RYB2ynjJs6rxVe5iAS4CRze3SPyjKds1wIQAYVQdBHj2i/H+2zEXbhR55NwrYwu/2 FYRuhsWp3KG6/ynKRgdfTf5tnFltkFdrpbou/sXYCAdtLvw2iEHrn9WHN2PWLK1PJxDo t6jflFXvLLE/Jlungd3kr546lX85ccvZLxUuqXL6gD2nH9OCUUeZFvgDdkYPj2+WKUR9 jEjw== X-Gm-Message-State: AOAM531Kg2lfQ6R9oENiJf49RSobOIyoMxSwRW1LivDQvQnJVTZHe6Hk Fa1VRasiNJO8tvHGoWYbtNtqOA== X-Google-Smtp-Source: ABdhPJyITJZ/M5Y6pzolJN77hW8YovE+DxRgfR2XDezdYrwOJmZzGWaaorXrRcjHe15BeR11ytfLkg== X-Received: by 2002:a05:6638:338c:: with SMTP id h12mr1651841jav.285.1643991565571; Fri, 04 Feb 2022 08:19:25 -0800 (PST) Received: from x1.localdomain ([207.135.234.126]) by smtp.gmail.com with ESMTPSA id k1sm1093435iov.6.2022.02.04.08.19.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Feb 2022 08:19:25 -0800 (PST) From: Jens Axboe To: io-uring@vger.kernel.org, asml.silence@gmail.com, linux-kernel@vger.kernel.org, Usama Arif Cc: fam.zheng@bytedance.com In-Reply-To: <20220204145117.1186568-1-usama.arif@bytedance.com> References: <20220204145117.1186568-1-usama.arif@bytedance.com> Subject: Re: [PATCH v6 0/5] io_uring: remove ring quiesce in io_uring_register Message-Id: <164399156486.497439.15709679441946471600.b4-ty@kernel.dk> Date: Fri, 04 Feb 2022 09:19:24 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 4 Feb 2022 14:51:12 +0000, Usama Arif wrote: > Ring quiesce is currently used for registering/unregistering eventfds, > registering restrictions and enabling rings. > > For opcodes relating to registering/unregistering eventfds, ring quiesce > can be avoided by creating a new RCU data structure (io_ev_fd) as part > of io_ring_ctx that holds the eventfd_ctx, with reads to the structure > protected by rcu_read_lock and writes (register/unregister calls) > protected by a mutex. > > [...] Applied, thanks! [1/5] io_uring: remove trace for eventfd commit: 054f8098d98be4c53ef317e9dd745bb5759f61d9 [2/5] io_uring: avoid ring quiesce while registering/unregistering eventfd commit: b77e315a96445e5f19a83546c73d2abbcedfa5db [3/5] io_uring: avoid ring quiesce while registering async eventfd commit: 13bcfd43fd0ef5e0de306e6ffb566970499b6888 [4/5] io_uring: avoid ring quiesce while registering restrictions and enabling rings commit: 1769f1468f4697409ee44f494940b5381acc1bae [5/5] io_uring: remove ring quiesce for io_uring_register commit: 971d72eb476604fc91a8e82f0421e6f599f9c300 Best regards, -- Jens Axboe