Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20946892rwd; Thu, 29 Jun 2023 08:59:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4NqaDJcc6rNo+nrARVMwp5IaRX9RIAhy9xqRZE8IjzLodggysYmva783zr6emLE/gxC2sj X-Received: by 2002:a05:6a20:3d14:b0:115:83f:fce1 with SMTP id y20-20020a056a203d1400b00115083ffce1mr189185pzi.5.1688054353659; Thu, 29 Jun 2023 08:59:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688054353; cv=none; d=google.com; s=arc-20160816; b=hQPGrzUf5PDHc+/OJiQsG09Oy9ooMhetYg6iNQRZWQbjxD45boMwRzTFfSeF0ys3mQ WpKCwqfHJ4p9+3dpgEIa8/bWt4+i1uWZl8NjMNE0YI0ZG5/URkX+DSyTcBS7iRbJlB+G 1MhHSSIY/fWFvWWpaBIZWrxbuS5Hxo5ITRyi0BubRefoRfxL52b+52a5KjDDBeDFkEwx Dp85zX5tzUMpRCL29cYLCJIn0zRnPvg7ydHi3i8CKbOzs1rNifrOCkAeT8a7Tpv3yK1M Hhqi1BHOu/Ypi+igpB8HeNcUQvtH+2RjV3uLEoNwN5vfeK54O/hKmwhbRpdK+xH1PApb Vucw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=wx+4npIK6ggBgqg5Ikl2o+KTDuvkPqB2u/Qe38+I6NE=; fh=Op+Iy/U9tlFanLXmsW8lrnL8YMoH/WnlIb0Jr/QM5Z4=; b=lH6sD6bAD0aUWIgKkhqOTpZaTwCKVzPYir/mSwsI//IF11wdWTGSzcguCvNG8XX+7e k7oK3l1FpI5XVtvo22AyDxh/sgbBaVID+B85uFliuDn9C8ZrVoJGuUgQW5YPgK90Dt5y W02hb/I+oAACNgyueGnu8VdmugWCOzvnucPT919Yt3oFnnpglxa2FQ5Ph44BflunpofD 5mcCVOUs2giEdNGB9rbjA0a3OoFjfGPrNurBZoCRMvVFTxN4YzQqxfTkkO3F5H+Sabk8 XBqQVbD3ZMSoBFzb1Ze8yGkdgLZCbDdRn4rgXp+ubBidhwzUDVw1l1KrUNGUBHg0eJJ5 OQxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=UQpGkCL9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a056a0002c900b00666eacb9002si9302298pft.371.2023.06.29.08.58.59; Thu, 29 Jun 2023 08:59:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=UQpGkCL9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231838AbjF2P3Q (ORCPT + 99 others); Thu, 29 Jun 2023 11:29:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232180AbjF2P3O (ORCPT ); Thu, 29 Jun 2023 11:29:14 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A796E57 for ; Thu, 29 Jun 2023 08:29:01 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-51d9c71fb4bso842932a12.2 for ; Thu, 29 Jun 2023 08:29:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1688052539; x=1690644539; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=wx+4npIK6ggBgqg5Ikl2o+KTDuvkPqB2u/Qe38+I6NE=; b=UQpGkCL9YJMy/UxnCWGkbYSo26IJe8fB3U1ktSJh4v7wU4gpys4x7S7HS3Bt0qNSkR 8VhE/MZA4H/OItizG+6x8ZEm7qrqxtvNk3eUZzbYSdagQAnZMZYN4iipupCFl763YTK6 cSF9lcu+lpL1lFDBd+DGKaXsY1ptwFsXNhfzTftFMDOfdR2G0xo8owDMs4bbaE29DxAX CFgh1OzTalgyAB5ztyfoaj2xzkqs3h+MmbuvQ7Wbd9QcWH4mcHN1/3inlIMSXCgDtiix ZhCH/Dyi2TIAZW7BFOScweCd1c8B5WrQP+W9zYaSJH8l/35h++oP+7qEkE1Uis0gfC6b HdVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688052539; x=1690644539; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wx+4npIK6ggBgqg5Ikl2o+KTDuvkPqB2u/Qe38+I6NE=; b=g4GPTDjHDwTnGnZY4jxMXYrMmdEkY3yX0nJ2wotpzN+SXnDxB2q4hvC2rwdlxb/3Xm u1Iuwz8FVBXfUUEpTGLVsEP2LG8wjiYsVMM3IHh2w7akmR2l6JHCC0k11qTcfZkd+uqU QleIZx/CGTn9fnrIT07ub0dFq+gYxydsH6rCWe1vEvLZZ7SsyROBULZ7atVGjxfro47X y88OsdLmImhOl/oTGjZZL8wcMMhvKgBZVG4nnKKluP8DGZadxTPvUDU6RLOCY8u+sFrB doTynhpRA3n3rMy+0GOR/JTbi9MXKIdIdCZ/5o+Ef8SA/Z8oa0POCbC//hMbmquaWWql mREA== X-Gm-Message-State: AC+VfDykZu2hOaQz4TR8pjipgp+friIpAmTdGhHySwD97skP7X+2IXuI ln+wwK324vnYawAMQWvULaM+lORY3iqA1YUcNSbVpA== X-Received: by 2002:a17:907:97d6:b0:988:57b4:2853 with SMTP id js22-20020a17090797d600b0098857b42853mr29800648ejc.25.1688052539500; Thu, 29 Jun 2023 08:28:59 -0700 (PDT) MIME-Version: 1.0 References: <20230629132711.1712536-1-matteorizzo@google.com> <20230629132711.1712536-2-matteorizzo@google.com> In-Reply-To: From: Matteo Rizzo Date: Thu, 29 Jun 2023 17:28:47 +0200 Message-ID: Subject: Re: [PATCH v2 1/1] Add a new sysctl to disable io_uring system-wide To: Bart Van Assche Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, io-uring@vger.kernel.org, jordyzomer@google.com, evn@google.com, poprdi@google.com, corbet@lwn.net, axboe@kernel.dk, asml.silence@gmail.com, akpm@linux-foundation.org, keescook@chromium.org, rostedt@goodmis.org, dave.hansen@linux.intel.com, ribalda@chromium.org, chenhuacai@kernel.org, steve@sk2.org, gpiccoli@igalia.com, ldufour@linux.ibm.com, bhe@redhat.com, oleksandr@natalenko.name Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 29 Jun 2023 at 17:16, Bart Van Assche wrote: > > On 6/29/23 06:27, Matteo Rizzo wrote: > > +static int __read_mostly sysctl_io_uring_disabled; > > Shouldn't this be a static key instead of an int in order to minimize the > performance impact on the io_uring_setup() system call? See also > Documentation/staging/static-keys.rst. > > Thanks, > > Bart. Is io_uring_setup in any hot path? io_uring_create is marked as __cold. -- Matteo