Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4839227imm; Mon, 11 Jun 2018 20:51:03 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ2lZbiCICoRbAjlphjRg97dGO22nExjDSLk60/c+JR6lns7jgIvdNWbVtY3J542+0ee6r+ X-Received: by 2002:a63:b742:: with SMTP id w2-v6mr1653669pgt.200.1528775463305; Mon, 11 Jun 2018 20:51:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528775463; cv=none; d=google.com; s=arc-20160816; b=NXA3KbFZ+Fx4CYPi7ssXRf/gMemsQ7+E/Ploid1hANFAyi61Fb87tKLL3LICl8BwO0 Qj28+5a/57s38EXLyxhHaElF+cNicV2IKA6dADY2E2oIldns6t61Wm90e+RluV+oNw3J 7R+WPEwWfxm55NAnsjyDLQJCIfOttjVenckFSRBfchemirJTCnFRq1ldmH0GuAE5FdcU QWYpWWUj4VxMvXf+CNGXoPIYWzGfFAt4ieIo9XPN5TDzsXhmjhZmfGr2WR26kMn/8A6x 0l18TUFLrFF1yGh0XnJLpvuN5yndWs+rjz/6mBaxTvhv4uCxNtmXx3VmIB5MpE1VHpCj pTJA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=OXZaWThBHsdWoDBh7HvtPbxGSoTwShjO3DzWjNW1XrQ=; b=Wm8rMtKm03GrWuoiht4T8ClXEbqt/P/JsldHNvGjb6C3+jc/mL+W/RV/VpHLx50A1W pFx+ZUgVEvXsBUaCnXsGDbn4/0VMi/S8JNC8h065+oPrrOezsjJ8v9kdufw553eGPf7d AYHqlKIiQ8Zjq6E6V78hz1aMxKeV9TVbzZbjjLeW6s6c0bjto85gb/9wMJKxZdxmuL/b rLugBSygtyOY+yRcvExutT79D/XV9wWsYlBqklKrAXp1ZWe6+3+JnkhRQ6irVZc/TLhl Xj0/GouNBxUuL0VutcdYH/hU7ejm+5w+B2+W9Y89tW2rOyLxU0F86nQ92ZBYQz0E7KmG 7k7A== 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 e8-v6si17256511pfi.23.2018.06.11.20.50.46; Mon, 11 Jun 2018 20:51:03 -0700 (PDT) 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 S1754059AbeFLDnL (ORCPT + 99 others); Mon, 11 Jun 2018 23:43:11 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:46020 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750895AbeFLDnJ (ORCPT ); Mon, 11 Jun 2018 23:43:09 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C406A401EF07; Tue, 12 Jun 2018 03:43:08 +0000 (UTC) Received: from ming.t460p (ovpn-12-16.pek2.redhat.com [10.72.12.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9BA9663F47; Tue, 12 Jun 2018 03:42:53 +0000 (UTC) Date: Tue, 12 Jun 2018 11:42:49 +0800 From: Ming Lei To: Christoph Hellwig Cc: Jens Axboe , Alexander Viro , Kent Overstreet , David Sterba , Huang Ying , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Theodore Ts'o , "Darrick J . Wong" , Coly Li , Filipe Manana , Randy Dunlap Subject: Re: [PATCH V6 00/30] block: support multipage bvec Message-ID: <20180612034242.GC26412@ming.t460p> References: <20180609123014.8861-1-ming.lei@redhat.com> <20180611164806.GA7452@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180611164806.GA7452@infradead.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 12 Jun 2018 03:43:08 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 12 Jun 2018 03:43:08 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'ming.lei@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 11, 2018 at 09:48:06AM -0700, Christoph Hellwig wrote: > І think the new naming scheme in this series is a nightmare. It > confuses the heck out of me, and that is despite knowing many bits of > the block layer inside out, and reviewing previous series. In V5, there isn't such issue, since bio_for_each_segment* is renamed into bio_for_each_page* first before doing the change. > > I think we need to take a step back and figure out what names what we > want in the end, and how we get there separately. Right, I agree, last year I told people that naming may be the biggest issue for this patchset. > > For the end result using bio_for_each_page in some form for the per-page > iteration seems like the only sensible idea, as that is what it does. Yeah, I agree, but except for renaming bio_for_each_segment* into bio_for_each_page* or whatever first, I don't see any way to deal with it cleanly. Seems Jens isn't fine with the big renaming, then I follow the suggestion of taking 'chunk' for representing multipage bvec in V6. > > For the bio-vec iteration I'm fine with either bio_for_each_bvec as that > exactly explains what it does, or bio_for_each_segment to keep the > change at a minimum. If bio_for_each_segment() is fine, that is basically what this patch is doing, then could you share me what the actual naming issue is in V6? And basically the name of 'chunk' is introduced for multipage bvec. > > And in terms of how to get there: maybe we need to move all the drivers > and file systems to the new names first before the actual changes to > document all the intent. That is exactly what I have done in V5, but that way is refused. Guys, so what can we do to make progress for this naming issue? Thanks, Ming