Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2635463imu; Thu, 17 Jan 2019 18:47:10 -0800 (PST) X-Google-Smtp-Source: ALg8bN54gJhlKfOXwaypuQdvq2QdpBc4alitZu1PgtwNdZIDGXa5omFdyWw2gHqGNxAcdsI5Exe8 X-Received: by 2002:a62:c42:: with SMTP id u63mr17183801pfi.73.1547779630541; Thu, 17 Jan 2019 18:47:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547779630; cv=none; d=google.com; s=arc-20160816; b=RLjjga99wXooG0Zh57ZWRqt9Y49Jo0rcSrWRzvQBtT70QLc5Evver99SoNSt+N88lS YRmkHF24E2P1DqtQrkTlWIqdpg71RpDQX/eOnmik34e4+R7zz1OlVcBkMoRlHaXr/+r1 GzIC0Ydvj5bMNNU0nEKnj/F5cqBc58v1RmPzRsukhvY0aZjCgsp8e2+xzDtrJO1QsLQT L2qWOXk0CdaQaSVGra5VeEXlu7p4WdlAIvLVW9NY/j9f7/Vu04f0t4m02xx3wwTq+kd0 kVetAbuic7Fdc69BdwVwliiATUG24NypH3c55XCNDz5KPOoHz61Dh1hahcUZVUwKe7rT ErYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=gE+INfox0nnsYgG0CEecJeBvY37rfrU6Pmtujkih/rI=; b=IV/N+T+o1zbRrZvSpTgQM/4mtJlRC5qRZ3+dHCmclOpxVfoL/X0IwTaRlm5tGv5EBQ +1yjlKhrycGZx5XA/09zL0MjvkdhNL7MfWg2sn5Wy3ZLawieuZXPbS+rP8jr1qYxpoub sT97kas9bGaYVMJ3dzj5JX4CFu7MFDNozljIn+mjaEMB18RraHVNMBGShRImASJS1wbn 5xQd2hL6dCG5ePoX9DoXtx7mnJWDASNBngr9dlYkF4hK2ncCAlEGD4X2P8R2k98Zw+oi VaIybgV0LGgac0UsUzWZlIeg7FMRW6WdnjvMgOHQSvfNP3MLTXXcHEFVtDRxpUJEU4TA VjrQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s5si3375663pfi.134.2019.01.17.18.46.53; Thu, 17 Jan 2019 18:47:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726919AbfARCpi (ORCPT + 99 others); Thu, 17 Jan 2019 21:45:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54574 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726398AbfARCpi (ORCPT ); Thu, 17 Jan 2019 21:45:38 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5598736807; Fri, 18 Jan 2019 02:45:37 +0000 (UTC) Received: from ming.t460p (ovpn-8-27.pek2.redhat.com [10.72.8.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 08724101961E; Fri, 18 Jan 2019 02:45:29 +0000 (UTC) Date: Fri, 18 Jan 2019 10:45:24 +0800 From: Ming Lei To: Jens Axboe Cc: Stephen Rothwell , Theodore Ts'o , Linux Next Mailing List , Linux Kernel Mailing List , Eric Biggers Subject: Re: linux-next: manual merge of the block tree with the fscrypt tree Message-ID: <20190118024523.GA27808@ming.t460p> References: <20190116132522.1b756433@canb.auug.org.au> <20190116031301.GC26146@ming.t460p> <20190116073915.GA1089@ming.t460p> <62f1085d-a436-d0ab-6bc1-2b3d7d0ea2c7@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <62f1085d-a436-d0ab-6bc1-2b3d7d0ea2c7@kernel.dk> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 18 Jan 2019 02:45:37 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 16, 2019 at 07:27:25AM -0700, Jens Axboe wrote: > On 1/16/19 12:39 AM, Ming Lei wrote: > > On Tue, Jan 15, 2019 at 08:17:36PM -0700, Jens Axboe wrote: > >> On 1/15/19 8:13 PM, Ming Lei wrote: > >>> On Tue, Jan 15, 2019 at 07:55:39PM -0700, Jens Axboe wrote: > >>>> On 1/15/19 7:25 PM, Stephen Rothwell wrote: > >>>>> Hi all, > >>>>> > >>>>> Today's linux-next merge of the block tree got a conflict in: > >>>>> > >>>>> fs/ext4/readpage.c > >>>>> > >>>>> between commit: > >>>>> > >>>>> acc9eb0a6073 ("ext4: add fs-verity read support") > >>>>> > >>>>> from the fscrypt tree and commit: > >>>>> > >>>>> eb754eb2a953 ("block: allow bio_for_each_segment_all() to iterate over multi-page bvec") > >>>>> > >>>>> from the block tree. > >>>>> > >>>>> I fixed it up (see below - the former moved the code modified by the > >>>>> latter) and can carry the fix as necessary. This is now fixed as far as > >>>>> linux-next is concerned, but any non trivial conflicts should be mentioned > >>>>> to your upstream maintainer when your tree is submitted for merging. > >>>>> You may also want to consider cooperating with the maintainer of the > >>>>> conflicting tree to minimise any particularly complex conflicts. > >>>> > >>>> Ming, I'm pulling this, I thought we agreed none of these bullshit > >>>> renames? The fact that a patch looks like this: > >>>> > >>>> - for_each_bvec(bv, (it)->bvecs, __cur_iter, __cur_iter) \ > >>>> + for_each_segment(bv, (it)->bvecs, __cur_iter, __cur_iter) \ > >>>> > >>>> is SUPER annoying and does NOTHING but to cause merge conflicts. > >>>> > >>>> Resend it without that. > >>> > >>> We need to differentiate 'segment' with 'bvec' in bvec helpers, which is > >>> usually seldom used by drivers. For example, only two in-tree users(ceph, iov_iter). > >>> That is why I rename it, and seems Christoph prefers to do it too. > >> > >> If you want to do a rename, then we do it after. I don't want to deal with > >> weeks and weeks of fallout from this. Write a rename script that we can > >> then run at the end of the next merge window. You're going to be playing > >> catch-up until that happens if we go the current route, and honestly > >> I'm not at all interested in the fallout from that. > >> > >> I know exactly what will happen until 5.1-rc opens, and what my tree will > >> look like from having to deal with this. And then I know exactly what Linus > >> is going to say, and I can't even argue against it, since he'll be totally > >> right. > >> > >> Hence it's not going to happen this way. > > > > I can remove the renaming in patch 'block: rename bvec helpers', but > > change on bio_for_each_segment_all() is inevitable, and it is still an > > API change, so merge conflict can't avoid too. > > That's not what I'm complaining about, API changes are inevitable for > something like this. What I'm complaining about is the very example > I posted above, and which has already caused issues. That's a frivolous > name change. Don't do it. Hi Jens, I may avoid the rename for avoiding merge conflict. However, given we have been back and forth for this naming thing several times, I'd rather explain the story one more time: In V13's patch4, we rename: for_each_bvec bvec_iter_bvec bvec_iter_len bvec_iter_page bvec_iter_offset into: for_each_segment segment_iter_bvec segment_iter_len segment_iter_page segment_iter_offset so that these helpers named with 'segment' only deal with single-page bvec, or called segment. We re-introduce helpers named with 'bvec' for multi-page bvec, as suggested by Christoph. If the above renaming has to be avoided, we need one new name for multi-page bvec helpers, previous I name it as 'mp_bvec', such as: for_each_mp_bvec mp_bvec_iter_bvec mp_bvec_iter_len mp_bvec_iter_page mp_bvec_iter_offset However, Christoph were not very happy with the above name. Given you mentioned one more rename after the patches are merged should be fine, I understand the new name of 'mp_bvec' should be fine for you because it is just short-life. Please confirm or provide another better name, so that we can move on. Thanks, Ming