Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8782715imu; Thu, 15 Nov 2018 18:00:30 -0800 (PST) X-Google-Smtp-Source: AJdET5dtLhPx3AAT3Kh8oIfVDbYzg9CGUwEfsBkCfm3NzHtAIvQDPDsFTFmltv5RgOormhsaanBy X-Received: by 2002:a17:902:bc4c:: with SMTP id t12mr8546682plz.45.1542333630107; Thu, 15 Nov 2018 18:00:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542333630; cv=none; d=google.com; s=arc-20160816; b=vJZ2ZUOtR9PNOlWU1Y0ucHpAufgTwDCPHS07mAURGqe0fhOr7ZtIMMO2+Kp9NnYf+m GKVp0Vq0FfflyfHnuQiUPdlZYa2iwUZtc+J4vPOO4wRl1Sxnlvt7RNp/DpmufbFNQDu0 s1p6MlQeuoWztAj7I3heKc35JSQChKB6IGlk8D6OjNINfuYDXVqeh9NIttRjX6HRBy/h ShaOiJOVj8UpANBRVz0GnqTjajIkeGtW0JwVkzz/NuP0cD/EYp4J3KCbKtgHQbkc8eTU VYRBWLl6NSAOGmsMkGIVaqqPEl1RMZ+9htWvvftY8Wt4YiP6biVzSnpcUuoG64o+ABKO jkUg== 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:dkim-signature; bh=L0tQ8ikizxQAgBWBpIiO7+X7FmVylN8wyOGQDrGUknE=; b=wlvgEAAONd8Ud361EKGtg89zGZuHxr6zBgajlyfGFi75C0LkV4xPl6ZtGi7GvifXS+ sfRmRSSxO2pgNDkUXx/B3MobaDElollv6/RvITezUYIlcE+geFODdHdNOGdrLREhwRqL nnx61C4mm9LNyabHyCCdoXpr5Ls3klBU51ZEThK8mSLbfeadU6RJJgc1siZfZRUzLywV XmwZ18uSHl3gal/TfPfScpMPvZIGVuvsd/G8LNymmn3dTdrs1t73QoYz3itwY4PqeDks Kss+bWksiryoOqaQ3WBms7LxkO8Aqg+60mwfSxlaLX1+afyCYT4qgT+U+569UPqMUblP 1Dtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@osandov-com.20150623.gappssmtp.com header.s=20150623 header.b=YAA64tUv; 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 v6si22649968pgv.277.2018.11.15.18.00.14; Thu, 15 Nov 2018 18:00:30 -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; dkim=pass header.i=@osandov-com.20150623.gappssmtp.com header.s=20150623 header.b=YAA64tUv; 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 S2389258AbeKPMKF (ORCPT + 99 others); Fri, 16 Nov 2018 07:10:05 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:46220 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726714AbeKPMKE (ORCPT ); Fri, 16 Nov 2018 07:10:04 -0500 Received: by mail-pf1-f193.google.com with SMTP id s9-v6so10582686pfm.13 for ; Thu, 15 Nov 2018 17:59:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osandov-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=L0tQ8ikizxQAgBWBpIiO7+X7FmVylN8wyOGQDrGUknE=; b=YAA64tUvsxftqPcARSFvNfvC4gEp9ESF8e9jlJElleZLA4PX+vdfZ9/2UEXqAt5wzz K0WNBrLAA5gMWcUz5j5NrwVG/zy8LWrHEpAIPe0ov54g6JE7sJWhvUq9VV+DWfda2sVT QIW3ylMmDw+fAVg3Cpj0qhrGf0tbFiro3jvK9gz82rTyxNMJz5P5avgE1B3jOyBJR+Gx x6JAGACHMZcG7E0iemqhvKMsu8dl/+VWO7x8FcuVk+Gl8jlZx+IZpODIDigJn62+SKzE fvxAL1JOd0T6j/BZg+xie4clkW1ocHVcnBk/Dy5Lbilc/Is67FHaSlDAZir14aDmLpC5 1HxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=L0tQ8ikizxQAgBWBpIiO7+X7FmVylN8wyOGQDrGUknE=; b=WmmAbYzWmD3JdiaMvpenlqgtlm5v4w6cDXbdj87XDiX08hRVNGm3KI+RV2TeMKIDru teq/pwHYtTi6q/fViKILWTXKTuAmZw4WV6KO0ahKt2cVxHyk7/E/q5j9ER41HZxcjkeX JDFRTqf7IqhA4dcPxnnRT3OpxdThNPOXO/xyz3RMCDTPhUM1bzSZq+btKWstUsCN64q2 zmwn+mPkSx+vNRCrkI/YSa4+qlr9+HIaj0HsR5dVcWvBOop9npdVLhNW8g8kuckesRjU V3zdjm5dgkCt463Ad7TDJRmpMRCrQUF4KOoDjEA94NxRP4dCS2k/KqvJpwExQtCkXu9g ehkQ== X-Gm-Message-State: AGRZ1gLww63OMRHnI1vbtYeQfZnwe6rMkq+9TLpS71tZYobbEyeL84f9 7yyR10wYy1UzLeiLiNnRT371kA== X-Received: by 2002:a63:4d0e:: with SMTP id a14mr1277785pgb.408.1542333578366; Thu, 15 Nov 2018 17:59:38 -0800 (PST) Received: from vader ([64.114.255.97]) by smtp.gmail.com with ESMTPSA id i72sm5797049pfe.181.2018.11.15.17.59.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Nov 2018 17:59:37 -0800 (PST) Date: Thu, 15 Nov 2018 17:59:36 -0800 From: Omar Sandoval To: Ming Lei 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: <20181116015936.GJ23828@vader> References: <20181115085306.9910-1-ming.lei@redhat.com> <20181115085306.9910-16-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181115085306.9910-16-ming.lei@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) 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 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? > Cc: Dave Chinner > Cc: Kent Overstreet > Cc: Mike Snitzer > Cc: dm-devel@redhat.com > Cc: Alexander Viro > Cc: linux-fsdevel@vger.kernel.org > Cc: Shaohua Li > Cc: linux-raid@vger.kernel.org > Cc: linux-erofs@lists.ozlabs.org > Cc: David Sterba > Cc: linux-btrfs@vger.kernel.org > Cc: Darrick J. Wong > Cc: linux-xfs@vger.kernel.org > Cc: Gao Xiang > Cc: Christoph Hellwig > Cc: Theodore Ts'o > Cc: linux-ext4@vger.kernel.org > Cc: Coly Li > Cc: linux-bcache@vger.kernel.org > Cc: Boaz Harrosh > Cc: Bob Peterson > Cc: cluster-devel@redhat.com > Signed-off-by: Ming Lei > --- > include/linux/bio.h | 8 -------- > 1 file changed, 8 deletions(-) > > diff --git a/include/linux/bio.h b/include/linux/bio.h > index 5040e9a2eb09..277921ad42e7 100644 > --- a/include/linux/bio.h > +++ b/include/linux/bio.h > @@ -34,15 +34,7 @@ > #define BIO_BUG_ON > #endif > > -#ifdef CONFIG_THP_SWAP > -#if HPAGE_PMD_NR > 256 > -#define BIO_MAX_PAGES HPAGE_PMD_NR > -#else > #define BIO_MAX_PAGES 256 > -#endif > -#else > -#define BIO_MAX_PAGES 256 > -#endif > > #define bio_prio(bio) (bio)->bi_ioprio > #define bio_set_prio(bio, prio) ((bio)->bi_ioprio = prio) > -- > 2.9.5 >