Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1864782imm; Sun, 27 May 2018 18:45:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKZRWx2GzrD0e9FCYORQkS6ahrFEW3GIJlcu0szAVVUCOxZHnmqhI/8+QqDzNmQ/rbR8NZi X-Received: by 2002:a17:902:341:: with SMTP id 59-v6mr1276801pld.349.1527471941032; Sun, 27 May 2018 18:45:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527471941; cv=none; d=google.com; s=arc-20160816; b=qGixmjpQqwGRMQ+2Ueg3WyRL0GaD8ohV04zgorj5mEL27veMnkT7duHaMxVdDUdYjr tk6BurYso7e2vkPj5wbcEHqiJWcOVCtPtYt5FUz+bfz7JJyQsjhGyjEOVsHj9ZyS1Yzt euQMu8HIZMqlAkFTFw/7BnEJ6xxkJe3saCyDhxbMsVMCuofRSCNlHb0+p5Ss/EroDFot +kq9I6XPMb6mqjoekbPQynOLY9zRqG4Xb88dTvvF3zfsgCo4Yienx1vmAw4UDkOgCvSi sZcenzYvF9NNL6fAPrmx0XmGgTx53RNw6dUavmZK2kBnz1ghb6rzF/Cl5B0QEk0UCXsC r+Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=yUtgGSC109OWg1vjDcj6f9JKV9405nfjZHbqyEYIhow=; b=XZPXRvh2K6ABgr4LXORMxA0oMzfURY/VTWE/LCg6ySsJDZuajywgNnvJwmVD5AyXUB eH6R6U5Jnb/UTvWjQppt46FuYGGyFlqKNnmhFjX2EM14Nfcx2bFv/g+QSwFa7a5LDP9Z RBxnsqAd3sPimhgQkUHyq24wvrmrbg/Wlzg1VS/FEu6bMzYQZC0+iPZnmVUgPGdr1SYw F1aOe+FiHtUY2v5bIWUssvtG0aZJ6FI0kEqgCP8iXA5UXHosSqCpnRcVW63+HSIGffVb 0/pLXfJEsSoWbzIBEo4Sw6vLmqL2aRRRAC7tzQf/7fTzN44ylvAq/5U1Y0NPW4+Ln/Hb cNIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=Onzfll43; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n61-v6si29531518plb.256.2018.05.27.18.45.14; Sun, 27 May 2018 18:45:40 -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; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=Onzfll43; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752956AbeE1BpE (ORCPT + 99 others); Sun, 27 May 2018 21:45:04 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:39849 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752934AbeE1BpB (ORCPT ); Sun, 27 May 2018 21:45:01 -0400 Received: by mail-io0-f194.google.com with SMTP id 200-v6so11394945ioz.6 for ; Sun, 27 May 2018 18:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=yUtgGSC109OWg1vjDcj6f9JKV9405nfjZHbqyEYIhow=; b=Onzfll43hK7Vmo11s5FEEauPIp0KZOJ1SpuoPikf61lXowIA3UMLAFRqZQn4ehx3pk EW9nQh4cId+BvcV7hx2H5Q8RG0BnGsSF80gK5DwMQSwCk43QMGlO9jGxVIo5Av+uyNSB JOOcNUzbh4yqHUE5AJVK8qOHoR7tMlmHoViQS9b/WlMn7Y5B7iGQkrDmEBojKIbTz+xv K5zXf47dK08ySkjQ8aHZ5wCOzqqnRCRLTfBj91wpqX7ycglTGVjBrGEFGrXgjf4JBk6v 6UMT93dRP9JjXcwalsIa3nB27s5Nij5YXcqFuHXw7+Piq+SWW2Ip6jQTj1uVbsk+B9TK o81Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=yUtgGSC109OWg1vjDcj6f9JKV9405nfjZHbqyEYIhow=; b=DXebfF4N3isiAk9erw6QNBApcRZdt+aEIsOKoVKdD/GhEFGPssLTEG/sDoS0dO8jdp dW6cj9oyWaXd8QH3KBuldlxJ60Yb7zlD91BepYQCvlwkUv5TkofiMSIfJnkFn6r7kPsL Q7LYGhfAQLGjWDIQgnDCCVB/v6TvoxX6NySmziF+P+CcXxmbuE2s94zxMUB4XShUnweC G5pGgJSJeYQRDZV8oT+Xe3TRacHT1FIsT1pki3S43jkxQ+y0rKrhU2ZEZ9Vj7DLPARsi Ct2/5Ph29YQn6/9OZ/5uxGokzmIVY35+GWZjQ3qb4b4BrDAAPd464pZ4kOzxyZKhRbjl KqJA== X-Gm-Message-State: ALKqPwdjwmggezVos1Adk6PSKki2YECdCB3U4gIPAuh52xhXfzZbANQh B9pOjsVMYeSsMxinGE/6hQM2TA== X-Received: by 2002:a6b:2593:: with SMTP id l141-v6mr1806641iol.90.1527471900392; Sun, 27 May 2018 18:45:00 -0700 (PDT) Received: from [192.168.1.211] (107.191.0.158.static.utbb.net. [107.191.0.158]) by smtp.gmail.com with ESMTPSA id g16-v6sm593305itf.25.2018.05.27.18.44.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 May 2018 18:44:59 -0700 (PDT) Subject: Re: [RESEND PATCH V5 00/33] block: support multipage bvec To: Ming Lei Cc: Kent Overstreet , Christoph Hellwig , Alexander Viro , 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 References: <20180525034621.31147-1-ming.lei@redhat.com> <20180525045306.GB8740@kmo-pixel> <8aa4276d-c0bc-3266-aa53-bf08a2e5ab5c@kernel.dk> <20180527072332.GA18240@ming.t460p> From: Jens Axboe Message-ID: Date: Sun, 27 May 2018 19:44:52 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180527072332.GA18240@ming.t460p> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/27/18 1:23 AM, Ming Lei wrote: > On Fri, May 25, 2018 at 10:30:46AM -0600, Jens Axboe wrote: >> On 5/24/18 10:53 PM, Kent Overstreet wrote: >>> On Fri, May 25, 2018 at 11:45:48AM +0800, Ming Lei wrote: >>>> Hi, >>>> >>>> This patchset brings multipage bvec into block layer: >>> >>> patch series looks sane to me. goddamn that's a lot of renaming. >> >> Indeed... I actually objected to some of the segment -> page >> renaming, but it's still in there. The foo2() temporary functions >> also concern me, we all know there's nothing more permanent than a >> temporary fixup. > > Jens, I remember I explained the renaming story to you in lsfmm a bit: > > 1) the current naming of segment is actually wrong, since every segment > only stores one single-page vector > > 2) the most important part is that once multipage bvec is introduced, > if the old _segment naming is still kept, it can be very confusing, > especially no good name is left for the helpers of dealing with real > segment. Yes, we discussed exactly this, which is why I'm surprised you went ahead with the same approach. I told you I don't like tree wide renames, if they can be avoided. I'd rather suffer some pain wrt page vs segments naming, and then later do a rename (if it bothers us) once the dust has settled on the interesting part of the changes. I'm very well away of our current naming and what it signifies. With #1, you are really splitting hairs, imho. Find a decent name for multiple segment. Chunk? > For the foo2() temporary change, that is only for avoiding tree-wide > change in one single tree, with this way, we can change sub-system one > by one, but if you think it is good to do tree-wide conversion in one > patch, I am fine to do it in next version. It's still a painful middle step. >>> Things are going to get interesting when we start sticking compound >>> pages in the page cache, there'll be some interesting questions of >>> semantics to deal with then but I think getting this will only help >>> w.r.t. plumbing that through and not dealing with 4k pages >>> unnecessarily - but I think even if we were to decide that merging >>> in bio_add_page() is not the way to go when the upper layers are >>> passing compound pages around already, this patch series helps >>> because regardless at some point everything under >>> generic_make_request() is going to have to deal with segments that >>> are more than one page, and this patch series makes that happen. So >>> incremental progress. >>> >>> Jens, any objections to getting this in? >> >> I like most of it, but I'd much rather get this way earlier in the >> series. We're basically just one week away from the merge window, it >> needs more simmer and testing time than that. On top of that, it >> hasn't received much review yet. >> >> So as far as I'm concerned, we can kick off the 4.19 block branch >> with iterated versions of this patchset. > > OK, I will post out again once v4.19 is started. Sounds good. -- Jens Axboe