Received: by 10.192.165.156 with SMTP id m28csp59363imm; Tue, 17 Apr 2018 06:33:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx49iUzjCD7ywXI24B2kQAbczWE0IeKh81mWdjytYkZtChjrdD34QXbflebPKXJEewJFBcFhu X-Received: by 10.98.62.87 with SMTP id l84mr1997067pfa.135.1523972029837; Tue, 17 Apr 2018 06:33:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523972029; cv=none; d=google.com; s=arc-20160816; b=YtNx/PT8zeFoLTzl7jkBS+O/jyI5pu3ubYTUah10ETXSy3d4H9JnJpszhwKvoY7eoo tfj0Unu/Ov7JAfgJxzEkidugfUiF2pWGH7Pi5O7khf4qT8f5sHbbPKPTWM1kKbcv17E3 2xkxfFrSW+r6M+ooVGNJaT60oTxlpczQiNiVt7fmInNTgrtvRvYLOFvELUZLtKLfeTEu jg387bc/sWz8dTcAtKdQA+ql0tEedViY9q8wxwt2urAys7r4BUWG15uCUREO45vbB4kq kEq8GcBf3BEacjnVA4bBqfH4iVLxIkGW8T3iEwjgMmDlpJ8cRrGTA/ZzTCgGIz81h76L p1Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=GJp9/4Xcogf05wxVr334MLsareKV5c834sO16kSyF84=; b=xBnt48jQ6S31fZDGaRSrQ4RKWU1AZ7BIKhC5nAMgcqObnMWgA5VQofk8HY4yYiDiRz asCwAYHhoD+XEAvjC0aNgsgSzllKbIiSPdxOUhCwJkcstpZkfDt+G6LnPiDo57ZWeofi o1nyg0zy7+fmJjxuUUpyfX5FchEduquMnB6EAY/OSc4H4goSMIYFkh3WOjf53C0DrUS/ GVng5LX757n9p2sJ+63SYu7AxvWia+/ajy1QIKtIer/cQL3Hjdmj86ucoBeFHAxfHAQ4 02RUtO005HvqYLy2CbJuk11fu+lKzHZ9zsV9fZCuSxD78b1E26yv2aJByIABl0H7GI00 Raig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=XA3hH6aV; 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=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si14317491plq.136.2018.04.17.06.33.35; Tue, 17 Apr 2018 06:33:49 -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=@microsoft.com header.s=selector1 header.b=XA3hH6aV; 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=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753611AbeDQNbz (ORCPT + 99 others); Tue, 17 Apr 2018 09:31:55 -0400 Received: from mail-by2nam01on0127.outbound.protection.outlook.com ([104.47.34.127]:49760 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753306AbeDQNbx (ORCPT ); Tue, 17 Apr 2018 09:31:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=GJp9/4Xcogf05wxVr334MLsareKV5c834sO16kSyF84=; b=XA3hH6aVBav5E/FD0Tcyet3TybM79g8JaRKZrkN+lexVQ0A30Sfnrmq8Z2C5EAoFnvJFZyFug8wMQ4XkZhLD6pkzJWq+rqeDH9ba0OzYmeIy4aSe+bmupAuGGqRHiORZw3M3UBmEP29Z7KIgVmat/r85p8ci0E7r0Oiq/BJ1w9k= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0919.namprd21.prod.outlook.com (52.132.132.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.715.4; Tue, 17 Apr 2018 13:31:52 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0715.004; Tue, 17 Apr 2018 13:31:52 +0000 From: Sasha Levin To: Jan Kara CC: Pavel Machek , Steven Rostedt , Linus Torvalds , Petr Mladek , "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "akpm@linux-foundation.org" , "linux-mm@kvack.org" , Cong Wang , Dave Hansen , Johannes Weiner , Mel Gorman , Michal Hocko , Vlastimil Babka , Peter Zijlstra , Mathieu Desnoyers , Tetsuo Handa , Byungchul Park , Tejun Heo Subject: Re: [PATCH AUTOSEL for 4.14 015/161] printk: Add console owner and waiter logic to load balance console writes Thread-Topic: [PATCH AUTOSEL for 4.14 015/161] printk: Add console owner and waiter logic to load balance console writes Thread-Index: AQHTz5h7IvK2v80d0k6VVqDoPwJEM6P4GK8AgAnYKwCAAX5DAIAAHfKAgAAFIICAAAchAIAAAugAgAAB5YCAAAMcgIAAAh8AgAAH3gCAAATcgIABMtsAgAAewoA= Date: Tue, 17 Apr 2018 13:31:51 +0000 Message-ID: <20180417133149.GR2341@sasha-vm> References: <20180416113629.2474ae74@gandalf.local.home> <20180416160200.GY2341@sasha-vm> <20180416121224.2138b806@gandalf.local.home> <20180416161911.GA2341@sasha-vm> <20180416123019.4d235374@gandalf.local.home> <20180416163754.GD2341@sasha-vm> <20180416170604.GC11034@amd> <20180416172327.GK2341@sasha-vm> <20180417114144.ov27khlig5thqvyo@quack2.suse.cz> In-Reply-To: <20180417114144.ov27khlig5thqvyo@quack2.suse.cz> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0919;7:ZRoxkFRfJYpqu+Q/kV+gEK2oqEUzOOhFQkPZqvFpKntvYrhXnKKNAPRaEF+QvQ/5iJdj5g6vJyZeJn5rG+E6GKP/JW0yPqYJJn5/G0vtffyqI9I3MrvsRfUDqT9fSyAMfyk+kRFqleSmN+zcLf/Or+NdL3BSWyEkn4a0qJTVajQED7n4Bcdko6o1Jm/ISBU8Xait8EBheLugnFKWIDdLtyJ+I48D5x7dz8VHyUoY17G4l4cr8UirDw3WiWd0Hz5u;20:ZmYD+S3tqQnmCkceLJ1N8QGTPadqTp8bAveyAjUdfaL5sqzI/B2uYun6uLoVfdYVQWik9xowaadwKGaQYj9BULvhYN/vzuHETCPNG+hpxeL06dY2+FzTy4xQcGEQG6puHFezqsswfaLR0B6e9+Snfy+YjsKSa/vLg80LNMU7nBI= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7193020);SRVR:DM5PR2101MB0919; x-ms-traffictypediagnostic: DM5PR2101MB0919: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(3231232)(944501359)(52105095)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB0919;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0919; x-forefront-prvs: 0645BEB7AA x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916004)(366004)(396003)(39380400002)(346002)(376002)(39860400002)(51444003)(199004)(189003)(377424004)(53936002)(86362001)(6486002)(86612001)(229853002)(39060400002)(6916009)(33716001)(33656002)(6246003)(93886005)(186003)(22452003)(7416002)(316002)(5660300001)(7736002)(26005)(97736004)(54906003)(6506007)(102836004)(59450400001)(305945005)(99286004)(33896004)(76176011)(11346002)(446003)(476003)(68736007)(486006)(81166006)(8676002)(81156014)(6512007)(66066001)(9686003)(6436002)(14454004)(105586002)(5250100002)(106356001)(10090500001)(2900100001)(478600001)(8936002)(3846002)(1076002)(2906002)(3280700002)(10290500003)(72206003)(25786009)(6116002)(4326008)(3660700001)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0919;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: d6iY5Wsb+hG6G+AMqPfGdmBqdNYbc/7Y8soMw2bV5W/Bh1E8mD2EQaqNKdKWhwCDrckk2LbI2v0T++ozb3paGV0K6HmiD5LrUroTSidcqdnZYX/7HlGZ5wrzEGUKo+XDqHa8P2SycGge/fEKM1NkQFiGX3Z7wJ0Y7nGVw0oG4WdRkGBXruAMgm1kDKsZroGH spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <1C88A03DC010BF47AFFB120ED598BE62@namprd21.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: b4e62799-5012-4078-5e61-08d5a4679456 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: b4e62799-5012-4078-5e61-08d5a4679456 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Apr 2018 13:31:51.8677 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0919 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 17, 2018 at 01:41:44PM +0200, Jan Kara wrote: >On Mon 16-04-18 17:23:30, Sasha Levin wrote: >> On Mon, Apr 16, 2018 at 07:06:04PM +0200, Pavel Machek wrote: >> >On Mon 2018-04-16 16:37:56, Sasha Levin wrote: >> >> On Mon, Apr 16, 2018 at 12:30:19PM -0400, Steven Rostedt wrote: >> >> >On Mon, 16 Apr 2018 16:19:14 +0000 >> >> >Sasha Levin wrote: >> >> > >> >> >> >Wait! What does that mean? What's the purpose of stable if it is = as >> >> >> >broken as mainline? >> >> >> >> >> >> This just means that if there is a fix that went in mainline, and = the >> >> >> fix is broken somehow, we'd rather take the broken fix than not. >> >> >> >> >> >> In this scenario, *something* will be broken, it's just a matter o= f >> >> >> what. We'd rather have the same thing broken between mainline and >> >> >> stable. >> >> > >> >> >Honestly, I think that removes all value of the stable series. I >> >> >remember when the stable series were first created. People were sayi= ng >> >> >that it wouldn't even get to more than 5 versions, because the bar f= or >> >> >backporting was suppose to be very high. Today it's just a fork of t= he >> >> >kernel at a given version. No more features, but we will be OK with >> >> >regressions. I'm struggling to see what the benefit of it is suppose= to >> >> >be? >> >> >> >> It's not "OK with regressions". >> >> >> >> Let's look at a hypothetical example: You have a 4.15.1 kernel that h= as >> >> a broken printf() behaviour so that when you: >> >> >> >> pr_err("%d", 5) >> >> >> >> Would print: >> >> >> >> "Microsoft Rulez" >> >> >> >> Bad, right? So you went ahead and fixed it, and now it prints "5" as = you >> >> might expect. But alas, with your patch, running: >> >> >> >> pr_err("%s", "hi!") >> >> >> >> Would show a cat picture for 5 seconds. >> >> >> >> Should we take your patch in -stable or not? If we don't, we're stuck >> >> with the original issue while the mainline kernel will behave >> >> differently, but if we do - we introduce a new regression. >> > >> >Of course not. >> > >> >- It must be obviously correct and tested. >> > >> >If it introduces new bug, it is not correct, and certainly not >> >obviously correct. >> >> As you might have noticed, we don't strictly follow the rules. >> >> Take a look at the whole PTI story as an example. It's way more than 100 >> lines, it's not obviously corrent, it fixed more than 1 thing, and so >> on, and yet it went in -stable! >> >> Would you argue we shouldn't have backported PTI to -stable? > >So I agree with that being backported. But I think this nicely demostrates >a point some people are trying to make in this thread. We do take fixes >with high risk or regression if they fix serious enough issue. Also we do >take fixes to non-serious stuff (such as addition of device ID) if the >chances of regression are really low. > >So IMHO the metric for including the fix is not solely "how annoying to >user this can be" but rather something like: > >score =3D (how annoying the bug is) * ((1 / (chance of regression due to > including this)) - 1)^3 > >(constants are somewhat arbitrary subject to tuning ;). Now both 'annoying= ' >and 'regression chance' parts are subjective and sometimes difficult to >estimate so don't take the formula too seriously but it demonstrates the >point. I think we all agree we want to fix annoying stuff and we don't wan= t >regressions. But you need to somehow weight this over your expected >userbase - and this is where your argument "but someone might be annoyed b= y >LEDs not working so let's include it" has problems - it should rather be >"is the annoyance of non-working leds over expected user base high enough >to risk a regression due to this patch for someone in the expected user >base"? The answer to this second question is not clear at all to a casual >reviewer and that's why we IMHO have CC stable tag as maintainer is >supposed to have at least a bit better clue. We may be able to guesstimate the 'regression chance', but there's no way we can guess the 'annoyance' once. There are so many different use cases that we just can't even guess how many people would get "annoyed" by something. Even regression chance is tricky, look at the commits I've linked earlier in the thread. Even the most trivial looking commits that end up in stable have a chance for regression. >Another point I wanted to make is that if chance a patch causes a >regression is about 2% as you said somewhere else in a thread, then by >adding 20 patches that "may fix a bug that is annoying for someone" you've >just increased a chance there's a regression in the release by 34%. And So I've said that the rejection rate is less than 2%. This includes all commits that I have proposed for -stable, but didn't end up being included in -stable. This includes commits that the author/maintainers NACKed, commits that didn't do anything on older kernels, commits that were buggy but were caught before the kernel was released, commits that failed to build on an arch I didn't test it on originally and so on. After thousands of merged AUTOSEL patches I can count the number of times a commit has caused a regression and had to be removed on one hand. >this is not just a math game, this also roughly matches a real experience >with maintaining our enterprise kernels. Do 20 "maybe" fixes outweight suc= h >regression chance? And I also note that for a regression to get reported s= o >that it gets included into your 2% estimate of a patch regression rate, >someone must be bothered enough by it to triage it and send an email >somewhere so that already falls into a category of "serious" stuff to me. It is indeed a numbers game, but the regression rate isn't 2%, it's closer to 0.05%.=