Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp920332pxb; Tue, 9 Feb 2021 16:44:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFcgOCs2dHg559zfVt7l9AdzUNQfaYbqT2h5FdXIoCnOhAbSOHAp6bcDGLWSot/8CM3gyb X-Received: by 2002:a17:906:1d0f:: with SMTP id n15mr311962ejh.553.1612917843228; Tue, 09 Feb 2021 16:44:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612917843; cv=none; d=google.com; s=arc-20160816; b=W3W+Zr2ovFiz6CMsmVfg952fMkcKmamqA/tElH4DKKq7nPJ55AfACRa73CxxEOF50G SC24uPszsp+TrYv+II4oAp/sss8jBkWfciNFMdeUdlLDS+hqaqYMIKMXokhfH0rtCXPZ 9hq+MSphIaQjwAvlNbhxgH8sDLU7rJc0An2+4GsoYoQ5DEXajMag+tpZb5DuyHANMgp8 v5Sp5o/uFCJArgeq8E47orC8yyonDKzdl/UNEFf9QRPUysHbwcYVvgCPJ6XjzDCui4X9 2qICR+UnX/t4nwR0CEJ2l4YACgWPHAadevlnea1A/IK0edxk5zC0dHXK11rLQyV81qRQ L3Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=bdRZv2RBFYVOw1DrekS0vPyouj741JbTHWCSARxprI0=; b=gWuiVYtjoJTLwsVRXTrniktaWQo4hsVOkFGyZgyoNMSDCNJPOa4UU5glQldW5d9GYS KakC3l6ZAbJby++bI9ikgzhrQGxDgYArRq1uX3PgfC+qsD6bCezFAW0q316n4az3NI6g dZOwqmX05XyssvdtYzi0nYe+nBb1T2kwdgIrCFvyVYOXVX2z68q+AszDLbReo2RnPZnN KUx164vHCrytaV1KcMyKdCYegPf5MOMlvQXOBESfnawfqbHP5e8rlXZrGISCzYtAlaal SLdV1CzismkwLnDvPmt8OCpuuZR4MAIRIXeae6ZvqmIrWjJggKkosVlrCHVRGXBDW1gX xFlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=GmCRQYb5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si194198eja.263.2021.02.09.16.43.40; Tue, 09 Feb 2021 16:44:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=GmCRQYb5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234479AbhBJAnA (ORCPT + 99 others); Tue, 9 Feb 2021 19:43:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:46522 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233095AbhBIVLp (ORCPT ); Tue, 9 Feb 2021 16:11:45 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4AA4564E7C; Tue, 9 Feb 2021 21:11:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1612905064; bh=ytWLcwYOAUd4IbrcpYpDbdEK5/yTd4hUKIl3OD0fARQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=GmCRQYb54ZgO/nxjSZAS7fqub0/QfEp6ycoSBu1FD4l8cDvEKSEN6cSzFvAFaU4UF TScFPAkFtgIPK5vM4t1e8Z5LIHY8wpHGFy7R8cxD3Ds2MfdO8kUAECxtcMRguiP96t OZgeHD5rfSxrtMRJ1b/JZSEU3wUw+sZ3B3HaCXag= Date: Tue, 9 Feb 2021 13:11:03 -0800 From: Andrew Morton To: Ira Weiny Cc: dsterba@suse.cz, clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 0/4] btrfs: Convert kmaps to core page calls Message-Id: <20210209131103.b46e80db675fec8bec8d2ad1@linux-foundation.org> In-Reply-To: <20210209205249.GB2975576@iweiny-DESK2.sc.intel.com> References: <20210205232304.1670522-1-ira.weiny@intel.com> <20210209151123.GT1993@suse.cz> <20210209110931.00f00e47d9a0529fcee2ff01@linux-foundation.org> <20210209205249.GB2975576@iweiny-DESK2.sc.intel.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 9 Feb 2021 12:52:49 -0800 Ira Weiny wrote: > On Tue, Feb 09, 2021 at 11:09:31AM -0800, Andrew Morton wrote: > > On Tue, 9 Feb 2021 16:11:23 +0100 David Sterba wrote: > > > > > On Fri, Feb 05, 2021 at 03:23:00PM -0800, ira.weiny@intel.com wrote: > > > > From: Ira Weiny > > > > > > > > There are many places where kmap//kunmap patterns occur. We lift > > > > these various patterns to core common functions and use them in the btrfs file > > > > system. At the same time we convert those core functions to use > > > > kmap_local_page() which is more efficient in those calls. > > > > > > > > I think this is best accepted through Andrew's tree as it has the mem*_page > > > > functions in it. But I'd like to get an ack from David or one of the other > > > > btrfs maintainers before the btrfs patches go through. > > > > > > I'd rather take the non-mm patches through my tree so it gets tested > > > the same way as other btrfs changes, straightforward cleanups or not. > > > > > > This brings the question how to do that as the first patch should go > > > through the MM tree. One option is to posptpone the actual cleanups > > > after the 1st patch is merged but this could take a long delay. > > > > > > I'd suggest to take the 1st patch within MM tree in the upcoming merge > > > window and then I can prepare a separate pull with just the cleanups. > > > Removing an inter-tree patch dependency was a sufficient reason for > > > Linus in the past for such pull requests. > > > > It would be best to merge [1/4] via the btrfs tree. Please add my > > > > Acked-by: Andrew Morton > > > > > > Although I think it would be better if [1/4] merely did the code > > movement. Adding those BUG_ON()s is a semantic/functional change and > > really shouldn't be bound up with the other things this patch series > > does. > > I proposed this too and was told 'no'... > > > If we put in into a separate patch, someone will suggest backing out the > patch which tells us that there's a problem. > > -- https://lore.kernel.org/lkml/20201209201415.GT7338@casper.infradead.org/ Yeah, no, please let's not do this. Bundling an offtopic change into [1/4] then making three more patches dependent on the ontopic parts of [1/4] is just rude. I think the case for adding the BUG_ONs can be clearly made. And that case should at least have been clearly made in the [1/4] changelog! (Although I expect VM_BUG_ON() would be better - will give us sufficient coverage without the overall impact.) Let's please queue this up separately.