Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5636045rwb; Tue, 9 Aug 2022 01:08:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ztCb0onuuiWo/MXkwI9gQUcBlce3LWP+IRjbabLpwjSpHhYjFlKk0lrPzCGhdeKd1V0DY X-Received: by 2002:aa7:dc10:0:b0:440:b446:c0cc with SMTP id b16-20020aa7dc10000000b00440b446c0ccmr7173100edu.34.1660032497358; Tue, 09 Aug 2022 01:08:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660032497; cv=none; d=google.com; s=arc-20160816; b=zHmv5rtfyl4xxpvPdLlu0WVWDLzOI23raXO3/rOUAOo34UgphqSY+SmKvSD3H91TWu 0icFmnxCN9LIcmoWMuAQ2jZQJLB/vb1jHQ7212w8tzKfNvy8nOOuSoTgAAUsmErcO/aA 52QpJNjn61KHLgvKIn9kgkH0wAoDtc+PEM/X8BYlRGr0Nw4oOO/HC0JyDWNL42ioBoMl lFesF9j8tFVPfSMnaSdbPhJE++N+DOYJEzFH+JGA7fCRMU1fVWnh79UFyZqalYCWkRWx deirciBCciEOunnEZaLKav1r7sqqdwCn8DxlJmX233XG0Yxnj65jIEjed2SCixq4nHZT we2g== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hDBpP4uDRt2zuUoRgz7F9W9nhp5+fTzERpgmXxdqiU8=; b=UwIdzKKnTvpyYHFNStzQVJeuVYTmLM6DIyQODrrMfq2Ae02xHkcC/Hiq4RFWlOWG7U Z5x59OrczbSdfhQEKve7H9TFeXcriLGiEv+yEyDHzbF+4fe8xqbRemVi+1/fcjXpjBM6 gLhu909FwXx0GI/cKKHFAkfqBmvGgV4W10bfWWGU2uaSIQd4eDS2ZeWnOSC2TX75p0xM ijqcx04GNUNNPdv2wybZ9Y9/3axFKA9LkjeHx0VOrHodyssgzW0BYuIUduwbZNl5QxMV RyvVd38L9d6KhV3WqVMTZHW4lyyraCqHXdpQVF/T4d14gQdVTtHxUqpzbxVZ9xLXup6R DAGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Q6gIiB1o; 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 t15-20020a170906608f00b007307d091ec9si1242727ejj.428.2022.08.09.01.07.51; Tue, 09 Aug 2022 01:08:17 -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=@infradead.org header.s=bombadil.20210309 header.b=Q6gIiB1o; 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 S239370AbiHIIBH (ORCPT + 99 others); Tue, 9 Aug 2022 04:01:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240871AbiHIIAu (ORCPT ); Tue, 9 Aug 2022 04:00:50 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D001610A1; Tue, 9 Aug 2022 01:00:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=hDBpP4uDRt2zuUoRgz7F9W9nhp5+fTzERpgmXxdqiU8=; b=Q6gIiB1ouX0R2+3djawK+betiN 7GRTDMPpU86FB/GWnNkrwkXYIX1ZFehC77Otp5JXz2oz2zz+gI2N/fH952uTIyMTAppFH24QKZRI0 HQ/9mTIfjcLOMAE13LtSIynOOF/p9huOVtywCUPR55oZujc2u38htj3/ZppjX/65eUhIxgJfgLBZ/ zAYWzdq4n+YOFy6FfeSvdRqxRFngslM+hHwiCu/R1wOPMIKDyWeQN/rPIr+y8Rn2jOu51phEJ8Xjm uCndwM2prrLpE0Vvl29ZCc2+ruFwdjzx2ct8oJHaoVZTilQsoBuNsQTkKWJGRIjxa/iTJTIAd4cx1 xMI2KzJQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oLKAO-002blo-3J; Tue, 09 Aug 2022 08:00:44 +0000 Date: Tue, 9 Aug 2022 01:00:44 -0700 From: Christoph Hellwig To: Bjorn Helgaas Cc: Kent Overstreet , "Matthew Wilcox (Oracle)" , linux-kernel@vger.kernel.org, pmladek@suse.com, linux-pci@vger.kernel.org Subject: Re: [PATCH v5 27/32] PCI/P2PDMA: Convert to printbuf Message-ID: References: <1b92761a-c166-b84f-8d77-a966d4c0ef9a@gmail.com> <20220809020734.GA1260912@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220809020734.GA1260912@bhelgaas> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Mon, Aug 08, 2022 at 09:07:34PM -0500, Bjorn Helgaas wrote: > This doesn't tell me what the advantage of this patch is, since I > don't think *this* patch uses heap allocation. > > As far as I can tell, this particular patch doesn't improve safety or > readability, so "convert X to Y even though we don't use any fancy Y > features" is a pointless message. > > But if printbufs are better than seq_buf overall, and converting this > gets us closer to the goal of removing seq_buf completely, that's a > perfectly acceptable reason. Just say that. Which still brings me back to a point made long time ago: Why are we doing the renaming to start with? Add the new functionality and or changes to seq_buf gradually instead of doing a tree wide sweep. I don't think the new naming has a huge advantage (in fact I think the old one actually is a little better, but the biggest argument here really is to not change something if we don't have to). That will massively reduce the churn at the cost of Kent having to rework the code a bit, but that seems like a worthwhile tradeoff and one that we've usuall made in the past.