Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp702579imw; Fri, 15 Jul 2022 11:13:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vJEZQC4VXQFxOkWdUxymaaXmnlnB+E1UMZNkIO0HOjvXVf9mn6xk/k0SeFUhJCsNSdTsUA X-Received: by 2002:a05:6808:1928:b0:339:f15a:ec8f with SMTP id bf40-20020a056808192800b00339f15aec8fmr10676772oib.35.1657908785549; Fri, 15 Jul 2022 11:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657908785; cv=none; d=google.com; s=arc-20160816; b=xuEoDXTTTeUKI9J+/G4pn4txvgQMugwgmPhS0GF40tq5vtuNiKLA3Cmoi0SFQVLZ0k hxug39GJOqCuKC68lmo54clxgSGLvgZxBeNs7jy1zzdb/7REZ3fELR2f/qGYl2aEXGMD 40BDg9s6x4Int6Xq+9zXn9PB14seYxc3810zNpWfo6uLkB8kH4BtMLk4YbfpjU+Dxx7g xKHIHKhldU2HaMtTBoWLI4e96yNAZC6++xvq4X9YuxOhsYxKxExT72fpt9ZwI+dmGJh8 93x1lTAfZw+XN4+jIa3S/ug7o5ySBbT6i7tUQwqOnOQcWh2hXdARSnHkTjMq4Af13T3Y 4dpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:date; bh=6uT+2TT9W95VXeCHWDiSSD2luBuxQhau1FLF5w4a/0c=; b=ymQ5+FYY1doXpWb20bgux6cMuicVZtARhZANJEyYxWIlf4dV8Y+Q5+c9U0RHVN8EcK GdnK2Sd7o9cEgEvB4+Xi12AWy47CEtFC1AD0PVpjMsuUn359DO8IHpQVPfCGowkinxNT F2XORzJU1/vUt62SplFa8pbW259hUoLua6PCBPLjUUBLporsHfjqviiDCBJ3/go/GSGB R5nhBn8M9EWFoBNjPanZLrZNtZ0y53EGWr8wZv4JUerS6K4kHZUdumVxrG8hkVaHe6i6 O98DYfJcRDZKUubug32QvPfPbwj6MKawjm6Sq2iTcQne2E/I/fBC2HWdUC25kW3lsUDN 5XdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=MZyZiEOx; 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=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eh40-20020a056870f5a800b0010c2a38dcb3si5797276oab.174.2022.07.15.11.12.49; Fri, 15 Jul 2022 11:13:05 -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=@linux.dev header.s=key1 header.b=MZyZiEOx; 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=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229727AbiGORyt (ORCPT + 99 others); Fri, 15 Jul 2022 13:54:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbiGORyr (ORCPT ); Fri, 15 Jul 2022 13:54:47 -0400 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70D7E33375; Fri, 15 Jul 2022 10:54:46 -0700 (PDT) Date: Fri, 15 Jul 2022 10:54:39 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1657907684; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6uT+2TT9W95VXeCHWDiSSD2luBuxQhau1FLF5w4a/0c=; b=MZyZiEOxH6F+9U95uSCMXEsHLFlHo3bfeOfGDlmL7fIJyMrAy0ahKSFopt1ppvQMgec/PO HZaTUvdsJ4GHoFKSl5kWqwYBQIf9EfeDYAQ3ieyja5nsH97q6pAEK9LYHuASLS0u6C0JpU JQEWtQRluVwP2j2cDeHhcbonQDaPZvE= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Michal =?iso-8859-1?Q?Koutn=FD?= Cc: axboe@kernel.dk, asml.silence@gmail.com, fam.zheng@bytedance.com, io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, usama.arif@bytedance.com Subject: Re: [PATCH] io_uring: Don't require reinitable percpu_ref Message-ID: References: <8a9adb78-d9bb-a511-e4c1-c94cca392c9b@kernel.dk> <20220715174501.25216-1-mkoutny@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220715174501.25216-1-mkoutny@suse.com> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 Fri, Jul 15, 2022 at 07:45:01PM +0200, Michal Koutny 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. > > Fixes: 8bb649ee1da3 ("io_uring: remove ring quiesce for io_uring_register") > Signed-off-by: Michal Koutn? Acked-by: Roman Gushchin Thanks!