Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2486455imu; Mon, 19 Nov 2018 01:05:34 -0800 (PST) X-Google-Smtp-Source: AJdET5fWOfe2Mv6yxL9zbvIMvxBnUOXLUHWKSBsraDLouF2lInAjmIfK8wHhGZlHjIi/8YwgBtk8 X-Received: by 2002:a63:2054:: with SMTP id r20mr19228494pgm.328.1542618334068; Mon, 19 Nov 2018 01:05:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542618334; cv=none; d=google.com; s=arc-20160816; b=1CjsP6iKfcrKac71BPAbmtAVVnNBhQhzT/thch/nZhvGyz6Y5juUEfxfd3ysfE4paH OxSkDN6ue4uLA8CARL+x4uLOH9gRlc2XQPdtzeYdjaO3kVxoBGrI32J06G4Oj4goOOoZ 8wfk1wkDui6s5eHR2yJHKfnMBkxVTUqu7zehlcZJWcVBBgb0MoEwy0aKKFn/4GIdoV+c rTkyr9FX9kUtyA5ljc9PpQkNHJLz5Xd/4KM601mTBiDQx3G61ssIwqQK7vCW7OSkHYdj e9wJ40gm2tAx8rWKv2NKmpyQqaLa109uXCvjJCVbcrVP+xFJmdha3VOzXHF8TtwHhLuf vSDw== 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=6PZkN47GUuH/4MxSDflcwquX3NS4SsWbDOCUCDQ/ewY=; b=Ui/z5dB5Q4czYtd39+V1VmrYW1x4bQmHLe5f9VisxMW8P8Xu0FXAUBMjgh0WEAAuE0 lMu/Oqfhpc9j5uamy5n6pLaTkpELCwdkivEtT2ISmF0orL1ukvc9L4b2dg3QSnCqSbA0 7ZIJaSfo0k5LznTHZlCJCFDD/wzy7kQg6YWEsnmbVm6GlrKE3TDtvbYSmP3/VwINRs+R V7RmraqNBAhnPjEuBFq0YxOc2bcADlSvNHaJxbQJFaokFf7K0CrNlbJDO5h1Ir17e3Y4 VaOvqxTrwe1PAac23zhNXcEmuHENWokMjginAG7cb8NV6vfPxHTJDF24UxSNUrgKmJfV 5ubg== 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 m187-v6si43407639pfm.159.2018.11.19.01.05.18; Mon, 19 Nov 2018 01:05:34 -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 S1727176AbeKST1l (ORCPT + 99 others); Mon, 19 Nov 2018 14:27:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60484 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726088AbeKST1l (ORCPT ); Mon, 19 Nov 2018 14:27:41 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 16E2D3082E44; Mon, 19 Nov 2018 09:04:41 +0000 (UTC) Received: from ming.t460p (ovpn-8-26.pek2.redhat.com [10.72.8.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 549F55D757; Mon, 19 Nov 2018 09:04:20 +0000 (UTC) Date: Mon, 19 Nov 2018 17:04:16 +0800 From: Ming Lei To: Omar Sandoval , Huang Ying Cc: Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Dave Chinner , Kent Overstreet , Mike Snitzer , dm-devel@redhat.com, Alexander Viro , linux-fsdevel@vger.kernel.org, Shaohua Li , linux-raid@vger.kernel.org, linux-erofs@lists.ozlabs.org, David Sterba , linux-btrfs@vger.kernel.org, "Darrick J . Wong" , linux-xfs@vger.kernel.org, Gao Xiang , Christoph Hellwig , Theodore Ts'o , linux-ext4@vger.kernel.org, Coly Li , linux-bcache@vger.kernel.org, Boaz Harrosh , Bob Peterson , cluster-devel@redhat.com Subject: Re: [PATCH V10 15/19] block: always define BIO_MAX_PAGES as 256 Message-ID: <20181119090415.GM16736@ming.t460p> References: <20181115085306.9910-1-ming.lei@redhat.com> <20181115085306.9910-16-ming.lei@redhat.com> <20181116015936.GJ23828@vader> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181116015936.GJ23828@vader> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Mon, 19 Nov 2018 09:04:41 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 15, 2018 at 05:59:36PM -0800, Omar Sandoval wrote: > On Thu, Nov 15, 2018 at 04:53:02PM +0800, Ming Lei wrote: > > Now multi-page bvec can cover CONFIG_THP_SWAP, so we don't need to > > increase BIO_MAX_PAGES for it. > > You mentioned to it in the cover letter, but this needs more explanation > in the commit message. Why did CONFIG_THP_SWAP require > 256? Why does > multipage bvecs remove that requirement? CONFIG_THP_SWAP needs to split one TH page into normal pages and adds them all to one bio. With multipage-bvec, it just takes one bvec to hold them all. thanks, Ming