Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp714115imw; Fri, 15 Jul 2022 11:25:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tjoEN1uWerIfyNWwbZE1nrQxmhQmomxEmV7KE1lHlmNR7yBDba97tAiZdbt7sIY0pqsoNA X-Received: by 2002:a17:902:cf4a:b0:16c:1b21:a3ae with SMTP id e10-20020a170902cf4a00b0016c1b21a3aemr15327629plg.38.1657909544790; Fri, 15 Jul 2022 11:25:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657909544; cv=none; d=google.com; s=arc-20160816; b=u73AeAWWudUTgl7qjInJGhF7T4u5UViaILGxhOVn9CqJo7sKlOpKdkVaqtskKlPo/P k5SCFRtOv2TzF+UA3Rk0Xd0VSkeRpitKVRqN/WvcgPoYR8mq+OHstDe2liYS5pQezA5I G+wK3AexVZfMfYry7I6mEthFAco/rsUHTcIu1A8cduN9MM78apfjWc01cKWVzTomjdHc 4yFAUIubE9mSZykNAEFc2I1CUwNlowY6UdQ2kxZdMeVb4kmj1bGzk+4XYCLzxmBKCVJb u65dMFTv6NvYBogl3pynHn7BPUbfFjDbpArUrgqHlDV8NqQIWjFrfdK1n1fVb+GT/aQq ieCA== 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=4/FyjU6uBWan2kSoZSaU/6fj+++EQw3eJlaaItPX/nQ=; b=l7cLle7YttpLUL1HlmMq76mT2M8Y61p5PKPCLAyGJIB1YtTMdZzUmo5dRKtvWT2dTT 76fMELOnscBFx3RicyYDqjiNuwo6RjdBRNxM3oWGUQvWNIR+3yxcmv8cjUXSpef1Ugm3 jlvST+s/Vj9+njE0FgbZGB8uk6hgMj8kBMiRfxvzfzZW6Rm2E9C0Kjce34nkxLuqxhmw I4V7A+gu/F83sZgysW4x7p4nqLljgcd2hAojevqmuyHWG4BfhJ4h+D2zRM9wrfIBm6BD TH2YoME3naIDMGnj9iJ8ySPAImv4nrSqCAwEcH8sVQqYW4h1sqT8qzhfif6t0BEJXoHo hHSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b="1/6brnyu"; 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 y9-20020a170902864900b00153b640ed90si5515348plt.38.2022.07.15.11.25.28; Fri, 15 Jul 2022 11:25:44 -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="1/6brnyu"; 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 S229833AbiGOSWQ (ORCPT + 99 others); Fri, 15 Jul 2022 14:22:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230043AbiGOSWM (ORCPT ); Fri, 15 Jul 2022 14:22:12 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51DC961735 for ; Fri, 15 Jul 2022 11:22:08 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id v4-20020a17090abb8400b001ef966652a3so12269891pjr.4 for ; Fri, 15 Jul 2022 11:22:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=4/FyjU6uBWan2kSoZSaU/6fj+++EQw3eJlaaItPX/nQ=; b=1/6brnyuOTj1rUlpQHv9IGU1OyraCVO0pVuUXSJiuexUN615vRZ3rV763vL1cUeevx wc5/qtbiwO5sdB+uKnLluQne2Dc9FwwxOtTzM0maAbrG5qPhxalV+eyTCIlfR8rJDcz8 /8wPLjLOBZBTiddSqwe/X3D7BtSswk3hEjWLhJh005UaqNUfjjaTr0zX32UanHRpp3cz RAh78/gBG6cwrWFR4jOKW+OlQ77ANurx8LD3x0e5mIyfiyK26qUO85bURar6vYQ87ndX blz0tC5zgOTTpBYiRDHqUXJDyNXdLzinpCQZKgfReiTsSrcp21iNJ2dReioTws2zmzTF p62g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=4/FyjU6uBWan2kSoZSaU/6fj+++EQw3eJlaaItPX/nQ=; b=Fq/vxAyP4qELk5jo8BoMljXUi2iZexpZOOzmQ8racORU0wY3ujBr2VcNhWPkICLOg9 IjkpXpS84oqaa/WVdcPDtlAP4F466I/cTNe7NMT1gzWoUySfU/OyuDnF0K3l21k6TF7i AZK7pNA2LkYffBJEmHsAVTKoV6GdwrLYOvQiOON7vzhScMeCjwrHy6AB1tyAH9IvNpyR wflUa3SiFKoEqrLFWdOd0LfK+Pp096sB7sgZ1mA2qTV+suw/K9g3UYKdT6m9GonIunfD HeSTK5XRuNnXsHLkFxUctxu7KW2AyrR0NAunRQceojvvJR/C0SYYvlDzBCDwYl7yaoOJ 0/BQ== X-Gm-Message-State: AJIora99YZrYxR1qQDtk9lbdjDM6jC2wwkrMWEcuBfS2KKreOHminl3r Gzob8yXvMCc+EMeT378XoFrujw== X-Received: by 2002:a17:903:41c8:b0:16c:59be:7651 with SMTP id u8-20020a17090341c800b0016c59be7651mr14649124ple.13.1657909327764; Fri, 15 Jul 2022 11:22:07 -0700 (PDT) Received: from [192.168.1.100] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id x63-20020a628642000000b0052514384f02sm4217482pfd.54.2022.07.15.11.22.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Jul 2022 11:22:07 -0700 (PDT) Message-ID: <0f5cab9f-9c18-7114-2ca1-ad4eff13eb63@kernel.dk> Date: Fri, 15 Jul 2022 12:22:05 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH] io_uring: Don't require reinitable percpu_ref Content-Language: en-US To: =?UTF-8?Q?Michal_Koutn=c3=bd?= Cc: asml.silence@gmail.com, fam.zheng@bytedance.com, io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, roman.gushchin@linux.dev, usama.arif@bytedance.com References: <8a9adb78-d9bb-a511-e4c1-c94cca392c9b@kernel.dk> <20220715174501.25216-1-mkoutny@suse.com> From: Jens Axboe In-Reply-To: <20220715174501.25216-1-mkoutny@suse.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 7/15/22 11:45 AM, Michal Koutn? wrote: > The commit 8bb649ee1da3 ("io_uring: remove ring quiesce for > io_uring_register") removed the worklow relying on reinit/resurrection > of the percpu_ref, hence, initialization with that requested is a relic. > > This is based on code review, this causes no real bug (and theoretically > can't). Technically it's a revert of commit 214828962dea ("io_uring: > initialize percpu refcounters using PERCU_REF_ALLOW_REINIT") but since > the flag omission is now justified, I'm not making this a revert. Thanks, applied manually for 5.20 (new file location). -- Jens Axboe