Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2948016imm; Thu, 24 May 2018 19:41:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrB1HKRuSXTykm1hjNLTBCZpAA/FiDS8tIDq7ZJOXLsvLZf9hzwMj/7fdvxiLU5yAnTRzW5 X-Received: by 2002:a63:6dc3:: with SMTP id i186-v6mr480047pgc.316.1527216064030; Thu, 24 May 2018 19:41:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527216063; cv=none; d=google.com; s=arc-20160816; b=OGp7TilZlnrGgdZpGkSkHJyYJ/tKYHPuRILZ1BlKG2YGXsXdwxptcZTxFg6il6HUTl uQIXCzQBr3wZ/pe5dUVSfj8TWABudZFmLvC/3uW0uLU8fMuQqmpJOLvraA1JY8Hc4owz q2p/usrNyX+LGDswOh5Fk/bm5McZBxgVeVngKberkasqOYwwpsmc5V2olfq8Zt4DYHQ2 wQIchCb6tmQVV8pNS0lcCUWqgrp5WUtFkj51SpeX4ikS7WH2QJRq0qX1IY4aZ/zcmroF 21aaITDcp0AG+20ktpigzMiPYmdm66v1kAxtNq+zKKI5MbT43WprQzWQb2WpbNrc0WHL UEWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=pBVd/6eOHb8H6ZKg7scum3VoaUKxiXa+VDnjHA8l5hE=; b=hcA3EbJA8U7tvaBgqOHdJJHTYkIx60kSxRmKYiJcaHTAMi36CWytchRWW8isEq6Ahp OZdVG06xd9SuNb+z+WWeHu4FIqtkYI5Tla6CwEUnQNw+5SHrpQkTLAHJDI/QtGbyRriM atq0Aq7ebnch9FBjM9rlfPgFt48gsutZ+yz3z70CgXh02N2pHqqfKDr4cNBE+9GiEirU 1hds4Sn/ZDt3G1NnXJtSGsCwTM/aMmydGV2zXaaF2GJeLxi+j8VeX+82u2HXpQ7cUrrk WtmJ7AX2s/limoB9dwZcPfCYO5+SUF4HyX4ZALKJWSkOCQh7RErmeRvoPYpGjcYBvT/7 YnLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=lpjQsNMv; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r134-v6si17776840pgr.491.2018.05.24.19.40.49; Thu, 24 May 2018 19:41:03 -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=@google.com header.s=20161025 header.b=lpjQsNMv; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935156AbeEXUBt (ORCPT + 99 others); Thu, 24 May 2018 16:01:49 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:37380 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751358AbeEXUBq (ORCPT ); Thu, 24 May 2018 16:01:46 -0400 Received: by mail-io0-f196.google.com with SMTP id e20-v6so3785059iof.4 for ; Thu, 24 May 2018 13:01:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pBVd/6eOHb8H6ZKg7scum3VoaUKxiXa+VDnjHA8l5hE=; b=lpjQsNMvom62qF1daUAXplkrBlzP9XavNQtHE188xjg66PUbqzpfkF0Mj8TgbtSzXE CwVuR40VRpZwfdGIBxJggXEi/iP7GbX77bDQ3R6uu46lPpl2rfQGw8fT1gbSBeOzzs3e Hd0zHDhQ+AIfR3DDt9GVn6xTS2dKWIlFok5EKjWllKY+c/q2wF4jPZYyhm9a/Ns0GfsX nJ8m+ugn9gE9LUUqOhTnwWh82kEbIXUL5ONcSKO8E0WC7MdWGRefEqPI36ctKIvGEQs+ mRlkUC3+paBuQ3u/xy+VPRvf0ZcuFEFaZpO7DSyV0OQJCitCNSScM4q9F4SVkNpzMqo5 POsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pBVd/6eOHb8H6ZKg7scum3VoaUKxiXa+VDnjHA8l5hE=; b=Q5w2hgYRknLvJOU1fKl4UF4RSTq7xNxEw+UvC49TjfAaGq/qDZBxGs2u6M1U0MBtsF uwL/tntcL9fXcrNhS/4vXdtPXaO2UOFGvDTY6DfoBdmGAs0YyfpAKQgKzCMGgvsCMkkQ YKKQM6VnicKheqbMRtuv3fgWFQY7HQ7zD/ByuIh6PjMiiPMi0DoZb9LA0wuWG4394PDO vqCybzd5I5tnH3asGKB+E0G/N57rhy/20R7axycubLCKNi6z3wiFrFV9oudJB3azdtrm 4oqF6n0qzneLrgE8iuDJS3nzQauk4090M0pss449yKBbYROE2Fbuy32jbbgdAuVHHofJ Jg4w== X-Gm-Message-State: ALKqPweD+SdQl8X78lfZ7lOVnlWjSnGRY/gxxfrrYrFWPMLRiOlghHfJ CJCbsIDdxrumUTsvzRTCQbPrki5nYVV6gUgvN+HQbQ== X-Received: by 2002:a6b:a50c:: with SMTP id o12-v6mr8013104ioe.16.1527192105639; Thu, 24 May 2018 13:01:45 -0700 (PDT) MIME-Version: 1.0 References: <20180524093159.286472249@linuxfoundation.org> <20180524093204.290399449@linuxfoundation.org> <20180524105011.jkmjrmoyqtogtgnn@quack2.suse.cz> <20180524110546.GA16171@kroah.com> <20180524112841.GA17626@kroah.com> <20180524190611.GD31019@kroah.com> In-Reply-To: <20180524190611.GD31019@kroah.com> From: Hugh Dickins Date: Thu, 24 May 2018 13:01:18 -0700 Message-ID: Subject: Re: [PATCH 4.4 50/92] mm: filemap: avoid unnecessary calls to lock_page when waiting for IO to complete during a read To: Greg KH Cc: Jan Kara , linux-kernel , stable , Mel Gorman , Andrew Morton , Linus Torvalds , Mel Gorman Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 24, 2018 at 12:06 PM Greg KH wrote: > On Thu, May 24, 2018 at 10:27:59AM -0700, Hugh Dickins wrote: > > On Thu, May 24, 2018 at 4:28 AM Greg KH wrote: > > > On Thu, May 24, 2018 at 04:17:12AM -0700, Hugh Dickins wrote: > > > > Thu, May 24, 2018 at 4:06 AM Greg Kroah-Hartman > > > > > > > > wrote: > > > > > > > > > On Thu, May 24, 2018 at 12:50:11PM +0200, Jan Kara wrote: > > > > > > On Thu 24-05-18 11:38:27, Greg Kroah-Hartman wrote: > > > > > > > 4.4-stable review patch. If anyone has any objections, please > > let me > > > > know. > > > > > > > > > > > > Just one objection: Why does stable care about this (and the > > previous > > > > > > patch)? I've checked the stable queue and I don't see anything that > > > > would > > > > > > have these patches as a prerequisite. And on their own, they are > > only > > > > > > cleanups without substantial gains. > > > > > > > > > There's a small gain here: > > > > > > > > > > > paralleldd > > > > > > > 4.4.0 4.4.0 > > > > > > > vanilla avoidlock > > > > > > > Amean Elapsd-1 5.28 ( 0.00%) 5.15 ( 2.50%) > > > > > > > Amean Elapsd-4 5.29 ( 0.00%) 5.17 ( 2.12%) > > > > > > > Amean Elapsd-7 5.28 ( 0.00%) 5.18 ( 1.78%) > > > > > > > Amean Elapsd-12 5.20 ( 0.00%) 5.33 ( -2.50%) > > > > > > > Amean Elapsd-21 5.14 ( 0.00%) 5.21 ( -1.41%) > > > > > > > Amean Elapsd-30 5.30 ( 0.00%) 5.12 ( 3.38%) > > > > > > > Amean Elapsd-48 5.78 ( 0.00%) 5.42 ( 6.21%) > > > > > > > Amean Elapsd-79 6.78 ( 0.00%) 6.62 ( 2.46%) > > > > > > > Amean Elapsd-110 9.09 ( 0.00%) 8.99 ( 1.15%) > > > > > > > Amean Elapsd-128 10.60 ( 0.00%) 10.43 ( 1.66%) > > > > > > > > > > > > > > The impact is small but intuitively, it makes sense to avoid > > > > unnecessary > > > > > > > calls to lock_page. > > > > > > > > > Yes, it's small, but it's marked in the SLES kernel as "needs to be > > > > > merged into stable", so obviously it matters to someone :) > > > > > > > > Hmm. I had the same reaction to these two as Jan, but assumed that they > > > > made applying later patches easier, and didn't take the trouble he did > > to > > > > find that's not so. > > > > > > > > I've no wish to be disputatious, but it does seem that the definition of > > > > "stable" has changed, and not necessarily for the better, if it's now a > > > > home for small gains: I thought we left those to upstream. > > > > > This is in the SLES kernel for a reason, and again, it's in the section > > > that says "this should be pushed to stable". So if it's good enough for > > > the SLES kernel, why isn't it good enough for all users of this kernel > > > tree? > > > > > If you all think it should be dropped in both places, that's fine with > > > me :) > > > > I think they are perfectly fine in SLES: folding in good work is a part of > > what distros are about. > And it's also what stable is for. We have had backports of performance > improvements in the past, along with lots of other things over the > years. This is a performance improvement. A tiny one, yes, but getting > rid of a lock is a good thing, and I picked it up as part of my review > of what a distro decided was worth adding for their users, as that's a > huge signal that might be of value to others. > > But I cannot find anything in stable-kernel-rules.rst that would admit them > > - perhaps that's just out of date? > Nope, that's the list I use to say "no" to. You can't describe > everything in that file, it's a judgement call. > > If -stable is to be a compendium of "this looks nice, you might like to > > include it", so be it: but the rules should then be updated. > This is a "a bunch of people I trust took it in their kernel, and it's > been running on zillion of machines for a while and causes no harm and a > slight benefit, so let's add it!" type of thing. It's not the only > patch in this series that was like that, but for some reason this one is > the one the triggered the debate, which is funny to me as this does have > numbers in it showing that it is an improvement :) Thank you for looking after the -stable trees: please let me not waste your time any further. I have no specific objection to the two patches, which are certainly not egregious offenders. But I do still find the disconnect between stable-kernel-rules.rst and reality confusing - or perhaps I just find reality confusing :) Hugh