Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5663155pxb; Wed, 26 Jan 2022 18:01:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6D6SEKOx/L5n2s2Y616j08RmNZf4SukyM1qaA8f/+JxSlVvrmg/dF7CUNLDWtMntInCP7 X-Received: by 2002:a17:907:2d11:: with SMTP id gs17mr1223589ejc.189.1643248908264; Wed, 26 Jan 2022 18:01:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643248908; cv=none; d=google.com; s=arc-20160816; b=PeLULW2nnUdX5gQAAxyLN/i3+TL9aaAidAvbyHLTehTOqf8Qdt5GJLyPGOW3B3SvIi xD0mnrKl0yE1Jn9nM0XklDgsluT66ZKzjEjSzu7VuiXhgg1+/8g0hOJJqMiGLe2AAZQp 7PIln8cTApo80QAa+/+DkZAfdKqQv9DPAqazZhqxnzbYxiaeFx272C2vl2Rnma860KoF QhT273MNI+U4ecabkJrnv0Lmw1PQ4ql4UOgdyCjOrYygJeLwbb5bCiKBB8WfGCzV7KSR 02tRXdhHLmjyrg097YBMdO15cdhWikBxGGhX3p+I0ehb7jzA+/9G0Qt5jKXqPlQffbpr dS9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=wwCqNAVxFssHUfnlnuxxpwR9TPFlYyH2jf2XVNtnT3k=; b=iLPAdzPEny3S7rk5c2f7rIsqgrQdXiKJ5oHy3Wgo0RhpJSxUfz3zQZYdGF67UOy7Jg Ro1TTvjo1DlqhVyfk6po119eigxBsTgH5Q6klDTeesItfUOta6h/aDkXT/g649Fj5+mm Ky8GhhVvdRbUDGJyPnb+eexYYcr5sFXXzAk2yXNWBPY08K59BL3+LwkPBoysiHsIuLCm x7EHyQdwZ/0Z1tI4DJ8UHKjAnVkT+DXQJ12Dck1rEvVeSDaYDLEhUs2xbt/ICPARIdxz 6ccInrIMhICi9XBQBYqZvXCkoaWjJHm62UQxa0Fbes7yc8hFzpu9MDvEoCgU4mL7x8Ww W84Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=XcJ6wQDz; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=xO4XOLlb; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o13si567235edi.520.2022.01.26.18.01.24; Wed, 26 Jan 2022 18:01:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=XcJ6wQDz; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=xO4XOLlb; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232437AbiAZVrP (ORCPT + 99 others); Wed, 26 Jan 2022 16:47:15 -0500 Received: from smtp-out1.suse.de ([195.135.220.28]:39540 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230126AbiAZVrO (ORCPT ); Wed, 26 Jan 2022 16:47:14 -0500 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 97A952190B; Wed, 26 Jan 2022 21:47:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1643233633; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wwCqNAVxFssHUfnlnuxxpwR9TPFlYyH2jf2XVNtnT3k=; b=XcJ6wQDzpBOy1x4jIYITW+mimSq+65AA2rIlCdcuhMUXo/A15G25KPOSfjCK3Fscw/oTrW tIgkdy0qS+Fnj00999XYRVyTsdVlVby1iDTlAmszREqXL3ERkxTsNLJrUrq/cGsY0iu1In Sp/PWuXgienf88BE1DEke01fQFkO/kk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1643233633; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wwCqNAVxFssHUfnlnuxxpwR9TPFlYyH2jf2XVNtnT3k=; b=xO4XOLlbII9EwZlT1utYvMefWEYLl2bGeLCig45Ic1ejhDhW7Cgi8MDcDb4NvHLWQ9dwzm JNGlGC6CMWvonwBw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 9649213E3C; Wed, 26 Jan 2022 21:47:10 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 3lIhFF7B8WHAQwAAMHmgww (envelope-from ); Wed, 26 Jan 2022 21:47:10 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "NeilBrown" To: "Christoph Hellwig" Cc: "Trond Myklebust" , "Anna Schumaker" , "Chuck Lever" , "Andrew Morton" , "Mel Gorman" , "Christoph Hellwig" , "David Howells" , linux-nfs@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/23] MM: extend block-plugging to cover all swap reads with read-ahead In-reply-to: References: <164299573337.26253.7538614611220034049.stgit@noble.brown>, <164299611274.26253.13900771841681128440.stgit@noble.brown>, Date: Thu, 27 Jan 2022 08:47:06 +1100 Message-id: <164323362698.5493.8309546969459514762@noble.neil.brown.name> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, 24 Jan 2022, Christoph Hellwig wrote: > On Mon, Jan 24, 2022 at 02:48:32PM +1100, NeilBrown wrote: > > Code that does swap read-ahead uses blk_start_plug() and > > blk_finish_plug() to allow lower levels to combine multiple read-ahead > > pages into a single request, but calls blk_finish_plug() *before* > > submitting the original (non-ahead) read request. > > This missed an opportunity to combine read requests. > >=20 > > This patch moves the blk_finish_plug to *after* all the reads. > > This will likely combine the primary read with some of the "ahead" > > reads, and that may slightly increase the latency of that read, but it > > should more than make up for this by making more efficient use of the > > storage path. > >=20 > > The patch mostly makes the code look more consistent. Performance > > change is unlikely to be noticeable. >=20 > Looks good: >=20 > Reviewed-by: Christoph Hellwig Thanks. >=20 > > Fixes-no-auto-backport: 3fb5c298b04e ("swap: allow swap readahead to be m= erged") >=20 > Is this really a thing? Maybe it should be..... As I'm sure you guessed, I think it is valuable to record this connection between commits, but I don't like it hasty automatic backporting of patches where the (unknown) risk might exceed the (known) value. This is how I choose to state my displeasure. Thanks, NeilBrown