Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp80087rwb; Mon, 26 Sep 2022 09:31:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7QWHZYcRtv3lS5sxU3GrGAxU1Gj7w3nlbnxOtKOmTP6oNUIOQ2u70wQt92bPN09j0WaAFK X-Received: by 2002:a17:902:e312:b0:176:9348:1f6e with SMTP id q18-20020a170902e31200b0017693481f6emr22904773plc.14.1664209891469; Mon, 26 Sep 2022 09:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664209891; cv=none; d=google.com; s=arc-20160816; b=nQtRPhZw6TENjBirY+wrfuAuX9gASBVwVAnqm+vii4mB8vlVVJl4I8zVC7euN6ICIB cNkvTlDl2DO6e4y3jMXZIKScr8FsTmZj5UbUjdJbs5MVNLL9/StjQIbCkGydBgHLjIUp 7xe/XLlkP1W2Ip/9s9RzE4CbKSdhGKDWrsZxpoEwA39c80HJs3zGkiJPrJxnX6iWkZVq 9ne7Vl1Bw3gX72vz458V8+3Do4c0fBqG8MzfRyCSFeRiaGkAvw/2b5sxtzTAK6OfxZY7 QMZ95Ek8HehBFQFMC1NHxplxxbV8KEa7dx3Keabgkowc4986BmFqZWfUNwl8q99E6nA7 rHeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=sw6FZfqvzqmIX08UU5Lp/Uj6v4XlSe1NzsiXFnfdCQQ=; b=JpCPC1PMZ4B+a5ZK+doyjGVFU5uVk/yMJe5lzDUefXblxrek+gheNRFBGkRTk56Yl4 91hFauja8huh6s+vP8M8SxKRN82P1I97xN20bl4s1mzvBnrnd1LyFOdtMd9BkDoV2Z1x TPsPrLNxCEzGBO5ZdYD0PssmX9aNQTuDit0Y4t4bRgOV7JB8jsP6cKLfdVMVQ+Wmtgry j+i9skhi28mPFxX2slYCoMNX4F0DF9rUE9Jy8wSY4p1K4U6b8s9zIb/o7dXFqSPeOdxL yfLX5anQS+L2A1aFx6jH8h/T40QGJhlTr6b1WPxKDktky7aXI7P0Fe/A7ofPTx6uysan fO/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=Sgk7alXX; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l185-20020a6388c2000000b00438cd7f5b74si18974202pgd.801.2022.09.26.09.31.19; Mon, 26 Sep 2022 09:31:31 -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=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=Sgk7alXX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236008AbiIZPu5 (ORCPT + 99 others); Mon, 26 Sep 2022 11:50:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235400AbiIZPud (ORCPT ); Mon, 26 Sep 2022 11:50:33 -0400 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90B555072C for ; Mon, 26 Sep 2022 07:37:55 -0700 (PDT) Received: by mail-io1-xd34.google.com with SMTP id y141so5382909iof.5 for ; Mon, 26 Sep 2022 07:37:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=sw6FZfqvzqmIX08UU5Lp/Uj6v4XlSe1NzsiXFnfdCQQ=; b=Sgk7alXXb92f8PuIwx5286o8RmTgibl09jojUbn0aQnglsvqSkRc63Rbb/PKHCsnWp Zp9Ql3jXYfs9f9jPlBoEVH+KcUOtZTf9qDObHCVzc2DN/f32kF4n2DdbShZSIQWZ2LCp xphNxJPxas1kCrrp1f7LcqXPD/7Z0ir5kthtSk9Yt5F7Oe9x3WASdtNVhHQsRAawoqsO ZehgRkevoTRmE3+taiu8haTclgXb7j+oWKXpQEzTjWCU6pIP011YlIZLPU/z6H4/6/hM Cs10ttseX8HJ3duSUtX7rqDDEMYL2OnWWcy2LI/uOE7zIf3bwZCTJzFhyjcxlqhx2Elc GfoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=sw6FZfqvzqmIX08UU5Lp/Uj6v4XlSe1NzsiXFnfdCQQ=; b=YzTEvxV9seiJDgxOEOCSmg/hxbDknWQt3S1D7+b+NfIcqUj2m1KoHmFS2ESYo3FT3b hjklVkYWiZAjULXT/AuHpvdi+z1vlWt+RNsDBekwWpvw2RlMpLGV5sl7CPA0BRH+IyBq R0dZuwFCPYZKNbHtfUUBKSS1xaf+JJTz1g7fvZw4IsEvOZ3JyNUKibjVgwoUNwtvBDGX +5uXV0E/e4UMWI443zBGh+HTxPCd8TRJH2t8NOB0d8ASpAEcwwM/MBH/wfd4rCb/uOsO srvvd8yzU8WM+81//68CvYwYpADXhgFTMh4V2C/C/rSpZD/xkX6iuJKlhEkU4tgtDAcL rwEw== X-Gm-Message-State: ACrzQf2Zn8+5Eavbw92S2DqQ7d2zfC9dQf8p772fdyAfcahdarh0AOVD igwz9sGaRtH1r7pq/ueTzzBVMWmQA8Dj3g== X-Received: by 2002:a02:2711:0:b0:35a:4fb3:efcf with SMTP id g17-20020a022711000000b0035a4fb3efcfmr11779967jaa.14.1664203074842; Mon, 26 Sep 2022 07:37:54 -0700 (PDT) Received: from [192.168.1.94] ([207.135.234.126]) by smtp.gmail.com with ESMTPSA id i7-20020a056638380700b00349d2d52f6asm7097615jav.37.2022.09.26.07.37.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Sep 2022 07:37:54 -0700 (PDT) Message-ID: Date: Mon, 26 Sep 2022 08:37:53 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH 0/3] io_uring: register single issuer task at creation Content-Language: en-US To: Dylan Yudaken , Pavel Begunkov Cc: io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com References: <20220926140304.1973990-1-dylany@fb.com> From: Jens Axboe In-Reply-To: <20220926140304.1973990-1-dylany@fb.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 9/26/22 8:03 AM, Dylan Yudaken wrote: > Registering the single issuer task from the first submit adds unnecesary > complications to the API as well as the implementation. Where simply > registering it at creation should not impose any barriers to getting the > same performance wins. > > There is another problem in 6.1, with IORING_SETUP_DEFER_TASKRUN. That > would like to check the submitter_task from unlocked contexts, which would > be racy. If upfront the submitter_task is set at creation time it will > simplify the logic there and probably increase performance (though this is > unmeasured). > > Patch 1 registers the task at creation of the io_uring, this works > standalone in case you want to only merge this part for 6.0 > > Patch 2/3 cleans up the code from the old style Applied 1/3 for 6.0, and then created a new branch for 6.1 that holds 2-3/3. Thanks! -- Jens Axboe