Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2946050imm; Thu, 24 May 2018 19:38:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpwRPvoyFjsxsvVRio6nFkDb/ts9nA/poBWktnpZbqT7Y04AAheBhuW7kkEEpNkcKTIYI9a X-Received: by 2002:a65:4acc:: with SMTP id c12-v6mr439586pgu.329.1527215909500; Thu, 24 May 2018 19:38:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527215909; cv=none; d=google.com; s=arc-20160816; b=UaE7WG0kPA7ijrMVStiq/QHdCw9ffyqUBioo0LsZs99tU3qiumhKDNRX3rS6iXntYJ uakTHO4nhhiJvwBb0YgcEpRpsv7j65Yc2d5eJ5HAPvE0aEQmgAi+uiNb9ZIDervCx46y Xt9A08QLOofL875lmAeB5sEp46Ci0MG3BfkaJGpYkNeJsQw+F4nABWQxne5nwd63ylv7 EyTtM25WNzGMeyJ7NfQsyS6vUXy57WLv3sMM4cfvC7o2dLYsBoHGldR7tbzb768aS83r sPeuNQhsQxNRnH+JFCAJW5m25ymnmZYoOvJh3xg0umRCyoHQESzGQ7KfRFws42xOX5Wb /EvA== 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:arc-authentication-results; bh=NlC4ifDe/+VIEMofa6SkeswIbcfUlm4pHHsK/D3lW2w=; b=K9vxWESiqnXWjhGc8UuHnCVHYz61B5zTJ/mifyqNtrmYFEDrmB0u3Gs3q2ckOSrqlK 3JvLrk3n9czVeodf3U/sJRoziLSXgK3co4QyeyDWo/NB4y3aD75l21WDbKXVlR/fApOf vBIgrdfVPHN5eTbKC1kpnaYyw2BMBOlmG4z5GgFU2ksJGdbOaIG6q8BQLsu/AVwWBKhm C9zPM7BgiHBv1JCGwxsU9pWvA/47G2qqBI2728ZAQ5OnKFsiOcGxg80iPz3m89vbo19a ggSXxKVRye0/lTL9ErTK614+sNk/MO2gaeWw8kFd7leHz9ECsCUzL2COD29exGiL9rKb VDvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GN/29kOh; 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 i64-v6si2611396pgc.673.2018.05.24.19.38.14; Thu, 24 May 2018 19:38:29 -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=@kernel.org header.s=default header.b=GN/29kOh; 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 S1034432AbeEXTGb (ORCPT + 99 others); Thu, 24 May 2018 15:06:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:41158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030244AbeEXTG3 (ORCPT ); Thu, 24 May 2018 15:06:29 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 692102086E; Thu, 24 May 2018 19:06:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527188789; bh=xVJ2RIdjI8B0F9SWL9lVql7mugH/tHq0+yuTl3Vjlm4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GN/29kOhMoR6Kt7VA04cJlntqVsWk1QPPLnFu/prBFI2+AjNRK7vv4QkVua5PxL7u 1nUp0Dbn0Y9a0eILEkz72XbiYrg8g/ADjIk9Gq3DpqWmjzvC21A7xvqGOxgu6e2zws 8ogEJCDUWO5uRaBkkv1U01Tj5JkZkgPQmpAEWRnM= Date: Thu, 24 May 2018 21:06:11 +0200 From: Greg KH To: Hugh Dickins Cc: Jan Kara , linux-kernel , stable , Mel Gorman , Andrew Morton , Linus Torvalds , Mel Gorman Subject: Re: [PATCH 4.4 50/92] mm: filemap: avoid unnecessary calls to lock_page when waiting for IO to complete during a read Message-ID: <20180524190611.GD31019@kroah.com> References: <20180524093159.286472249@linuxfoundation.org> <20180524093204.290399449@linuxfoundation.org> <20180524105011.jkmjrmoyqtogtgnn@quack2.suse.cz> <20180524110546.GA16171@kroah.com> <20180524112841.GA17626@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) 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 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 :) thanks, greg k-h