Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp361263rwi; Mon, 10 Oct 2022 01:06:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6pd4wKC45siY+0DJ6cvxJHY8UZ6PREzE2dWH+N8PhfLVw6DUetcj/nBB1RYyzhLpu1q4J2 X-Received: by 2002:a17:907:a047:b0:78d:b8ac:765d with SMTP id gz7-20020a170907a04700b0078db8ac765dmr2116951ejc.631.1665389174919; Mon, 10 Oct 2022 01:06:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665389174; cv=none; d=google.com; s=arc-20160816; b=ApNPPZ0fO6/EKSB7JunyHsouhuiATEf1S+E2+z2w4tfw0w/7A12i+8PLujokxEK518 vm8QDl19kkpfs+EsFJ7wDtUr96jJX6WYjygDEYX4SDavG/VJ+6NwA2BggFq/hybtNNpk n4/RY/h0QANt8U9RCmAsxiYeB0Gwx0Dvus+pp5KAYzrs5fhFzu3lcQOf2mMr0fWECln3 mD+BtDEchcIChuzORRyHw5Q1cykl9nsDnkNl4gpUviOcR4z8Mk6n/KffpIVZx1Qcs0lC HJnO9Bg/zSIZTOL153UqKPURC5iovTfg0o7AZ+skIKimBDDuJqbSlVhMvkKgclR7wsVH D/VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Vo4yDv3ovpdO/ZJVXLeiWCAzgX7idsFmIs0m1o/yZgk=; b=Sct6LM5WyRo6Nz4Bsh5Od6WASYzEbJyF3W4XCl3sFp6Letpnm20P3NMjuWzIXF30zQ /jhcEH1vIrV6SPHWtklgIYYNPbw8fc5/xwyfr88G07hMw6twp34/ExIhVBqIe4srPf3w KPpLItkL2vfgUvU5OXBWPfaxuzjqkTwD8na27u1at2b0eEQu4Hc44O0efdM+Op5YAs71 EYMBMQGfe8dnvO1jH3hhf9Xrf8LrO/g9F2wAMS6nJaDIlisecB0Cct10fQ5fJdwmHQxd hjIxAL/XcA5co4wi99iZbjM5OeWB20kYUH1LtUKO9G0WYUchIdK3VxviviFg1dpUICaL 4TBw== ARC-Authentication-Results: i=1; mx.google.com; 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 i20-20020a1709064fd400b00780b95a07b4si9940534ejw.873.2022.10.10.01.05.38; Mon, 10 Oct 2022 01:06:14 -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; 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 S231433AbiJJHzR (ORCPT + 99 others); Mon, 10 Oct 2022 03:55:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbiJJHzP (ORCPT ); Mon, 10 Oct 2022 03:55:15 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD4031DA70; Mon, 10 Oct 2022 00:55:12 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 21BA768AA6; Mon, 10 Oct 2022 09:55:05 +0200 (CEST) Date: Mon, 10 Oct 2022 09:55:04 +0200 From: Christoph Hellwig To: Luis Chamberlain Cc: Chaitanya Kulkarni , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-nvme@lists.infradead.org, linux-s390@vger.kernel.org, linux-scsi@vger.kernel.org, axboe@kernel.dk, efremov@linux.com, josef@toxicpanda.com, idryomov@gmail.com, dongsheng.yang@easystack.cn, haris.iqbal@ionos.com, jinpu.wang@ionos.com, mst@redhat.com, jasowang@redhat.com, pbonzini@redhat.com, stefanha@redhat.com, ohad@wizery.com, andersson@kernel.org, baolin.wang@linux.alibaba.com, ulf.hansson@linaro.org, richard@nod.at, miquel.raynal@bootlin.com, vigneshr@ti.com, marcan@marcan.st, sven@svenpeter.dev, alyssa@rosenzweig.io, kbusch@kernel.org, hch@lst.de, sagi@grimberg.me, sth@linux.ibm.com, hoeppner@linux.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, jejb@linux.ibm.com, martin.petersen@oracle.com, hare@suse.de, bhelgaas@google.com, john.garry@huawei.com, christophe.jaillet@wanadoo.fr, vaibhavgupta40@gmail.com, wsa+renesas@sang-engineering.com, damien.lemoal@opensource.wdc.com, johannes.thumshirn@wdc.com, bvanassche@acm.org, ming.lei@redhat.com, shinichiro.kawasaki@wdc.com, vincent.fu@samsung.com, christoph.boehmwalder@linbit.com, joel@jms.id.au, vincent.whitchurch@axis.com, nbd@other.debian.org, ceph-devel@vger.kernel.org, virtualization@lists.linux-foundation.org, asahi@lists.linux.dev Subject: Re: [RFC PATCH 00/21] block: add and use init tagset helper Message-ID: <20221010075504.GA21272@lst.de> References: <20221005032257.80681-1-kch@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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, Oct 07, 2022 at 11:26:13AM -0700, Luis Chamberlain wrote: > *If* there were commonalities at init and these could be broken up into > common groups, each having their own set of calls, then we simplify and > can abstract these. I say this without doing a complete review of the > removals, but if there really isn't much of commonalities I tend to > agree with Bart that open coding this is better. The commonality is that there are various required or optional fields to fill out. I actually have a WIP series to make the tag_set dynamically allocated and refcounted to fix some long standing life time issues. That creates a new alloc helper that will take a few mandatory arguments and would heavily clash with this series.