Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp124511imu; Mon, 19 Nov 2018 19:06:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/XhBYQ8RXpatZHJ1gOssShsVddZC760MVrJ3vPdf1IHOgi4XKP0PgEKvkAektwtE3Zzdzxk X-Received: by 2002:a63:a30a:: with SMTP id s10mr279331pge.234.1542683206446; Mon, 19 Nov 2018 19:06:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542683206; cv=none; d=google.com; s=arc-20160816; b=Gxa7ybH1MHyg9qm0QKZcG3ulgSkGmDCywt3ucnGBDMs7E9TCxu9cFhFKSFaCzjCEbM 1c8xdibEWm9nLofEYPoGbKskrv3oo0fi5Goz3XuOoiHYDhAA82m8uo9TGppkIOfrBIb9 UhVBXAAqStglFh4ep8V6UUaGHvh5hrJpkYODwvBk5DaxtDiaM7g/vH+UZuyV9LC6RsE1 4ztsZxGKuBaQtgRK6YS3YUsl0xQOpVmlxBY7Zq/eDJ2vinT5OFngJn+bhOf1pjVQVLDW Dz/1+8UF8fhJIg/ynIqaj7D3m7KxITozZnPTQvCYL2YF/i1GbfS6ixSrd1TLrWQ9Ulr1 pmmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=zfvOv7QGKMUyPCOjwaDbDVpIfrmv37S6efEr11Yb5Mc=; b=0WG2OG/wQUzJrg2dQQ3j2LBp1jlRvCwYJhGksb9rtSXOPsWTkhYKcAV6WPcBP3+hli 8uGpkfwzAgfREAlvlkRxHx0s3TGcIBbC31jMC3DTbOSlXjo1lAcU38+f5UT7QYQYrXsr yN7L7kDJDXTkEFuDx94yfqf8CL/nXiUq4Vs9083fEJNm6lZFQ7j9uBb6xdCYR5XRDVv9 BVFmhLw0VEjtVYY9FgxQZUUF+GJjWb8V9atKqfATVZ1RtrNfOQ8VZ7/C0qeCnpUx0PI7 7eCFQ4lnPqvpkk2tyBWrhycjegBrgohc+7O2p03nrCjpdohLkvV6gjPUOtxc4Qkmevg2 IWKg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4si13154319plv.56.2018.11.19.19.06.30; Mon, 19 Nov 2018 19:06:46 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731217AbeKTNL6 (ORCPT + 99 others); Tue, 20 Nov 2018 08:11:58 -0500 Received: from mga04.intel.com ([192.55.52.120]:13768 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725992AbeKTNL6 (ORCPT ); Tue, 20 Nov 2018 08:11:58 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Nov 2018 18:45:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,255,1539673200"; d="scan'208";a="109949215" Received: from yhuang-dev.sh.intel.com (HELO yhuang-dev) ([10.239.13.27]) by orsmga002.jf.intel.com with ESMTP; 19 Nov 2018 18:45:04 -0800 From: "Huang\, Ying" To: Ming Lei Cc: Omar Sandoval , Jens Axboe , , , , Dave Chinner , Kent Overstreet , "Mike Snitzer" , , Alexander Viro , , Shaohua Li , , , David Sterba , , "Darrick J . Wong" , , Gao Xiang , "Christoph Hellwig" , Theodore Ts'o , , Coly Li , , Boaz Harrosh , "Bob Peterson" , Subject: Re: [PATCH V10 15/19] block: always define BIO_MAX_PAGES as 256 References: <20181115085306.9910-1-ming.lei@redhat.com> <20181115085306.9910-16-ming.lei@redhat.com> <20181116015936.GJ23828@vader> <20181119090415.GM16736@ming.t460p> Date: Tue, 20 Nov 2018 10:45:03 +0800 In-Reply-To: <20181119090415.GM16736@ming.t460p> (Ming Lei's message of "Mon, 19 Nov 2018 17:04:16 +0800") Message-ID: <87o9ak8o28.fsf@yhuang-dev.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ming Lei writes: > 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. Yes. CONFIG_THP_SWAP needs to put 512 normal sub-pages into one bio to write the 512 sub-pages together. With the help of multipage-bvec, it needs just bvect to hold 512 normal sub-pages. Best Regards, Huang, Ying > thanks, > Ming