Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp576511ybz; Fri, 24 Apr 2020 05:45:42 -0700 (PDT) X-Google-Smtp-Source: APiQypKouOQi0r4le+ew1KtulRECuCOPHv/adnHDM26UFGWmEutHxWN8+QLzyxmJdznR0LXM+pl7 X-Received: by 2002:a17:906:4317:: with SMTP id j23mr6680965ejm.377.1587732342319; Fri, 24 Apr 2020 05:45:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587732342; cv=none; d=google.com; s=arc-20160816; b=HTZ9Dy0fhRsVMoZPZHOCaYQTCErg5ghhGubjzMjO/9quhnwjZJm1DFtq4jUej/wm4H BkeXzyGMeTpvgsw5KRpxmCiMuFn/O9l+UoVqrdwueCUor3t36taY0ncS819hyjZUVdAf 8AsVtKeEs61Rt8exMsfrk6KKF14iiGBsBqBKJOIYCZjEDDr0OQAnTgB2VUoFe0e5wV56 3k1o6+3RLC2TfXS1a6fIj+M5sWsXgCCP9/kS7yAEgWBBd5CFTa/dfNpQkND5kw2S7S78 cnh6xOLVrgY27cLk8GIbo2U3ZABXNIMfUf3J9oSyblhk5LtHix1mcZhT9o/xuPkViomj nPJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=/Ie0WSfCUmJTpAPOfloAhL+rR2UvUMz8iK+ux4tgOjk=; b=AxDidQYMQL5nJvvjHauMfe0IUEN7muO0XOZcW1773hl8dM1oRfGzFxmVnZCfonw157 bh84Hr1Akk4QfcqBMgGFZq4i1mVUaLanISP+ocDHU/DBG74IsS4Mwqp3TtrluYl8wgc0 Y/4lI5BE6KDniKJBL/kqhsLJ02i2gnV7KcCbBZn3U2DSbSFtp30y7IIKc5s8piwbtOLi CGGYbeOWgRdt9UfF38DDEfz0EhIXltqsPUzH3ioNNdtqrrP/D2e5izUpKz++Qe/WLyTw H6uhnSW/TqPJD1RJS9u6HP+fRibZlHY7GWFO0N5I+ENiRRcRiHXHomVj8BIm1VHDV7GD HH1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r3si3001062edc.405.2020.04.24.05.45.18; Fri, 24 Apr 2020 05:45:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727046AbgDXMnm (ORCPT + 99 others); Fri, 24 Apr 2020 08:43:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:41574 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726489AbgDXMnl (ORCPT ); Fri, 24 Apr 2020 08:43:41 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (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 0AF8D2064C; Fri, 24 Apr 2020 12:43:40 +0000 (UTC) Date: Fri, 24 Apr 2020 08:43:39 -0400 From: Steven Rostedt To: Hillf Danton Cc: Peter Zijlstra , Mike Galbraith , lkml , Ingo Molnar Subject: Re: [PATCH] sched: make p->prio independent of p->mm Message-ID: <20200424084339.189d4ee6@gandalf.local.home> In-Reply-To: <20200424021231.13676-1-hdanton@sina.com> References: <20200423040128.6120-1-hdanton@sina.com> <20200423092620.GR20730@hirez.programming.kicks-ass.net> <20200423141609.5224-1-hdanton@sina.com> <20200424003028.14800-1-hdanton@sina.com> <20200424021231.13676-1-hdanton@sina.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 24 Apr 2020 10:12:31 +0800 Hillf Danton wrote: > Yes and if you agree, we send it home during the 5.8 cycle, or not before > fifo is reclaimed from modules. > > In the spin it now looks like > > --- a/include/linux/sched/prio.h > +++ b/include/linux/sched/prio.h > @@ -12,15 +12,12 @@ > * tasks are in the range MAX_RT_PRIO..MAX_PRIO-1. Priority > * values are inverted: lower p->prio value means higher priority. > * > - * The MAX_USER_RT_PRIO value allows the actual maximum > - * RT priority to be separate from the value exported to > - * user-space. This allows kernel threads to set their > - * priority to a value higher than any user task. Note: > - * MAX_RT_PRIO must not be smaller than MAX_USER_RT_PRIO. > + * Note: MAX_USER_RT_PRIO will be removed as early as 5.8, > + * don't use it in new code. > */ > > -#define MAX_USER_RT_PRIO 100 > -#define MAX_RT_PRIO MAX_USER_RT_PRIO > +#define MAX_RT_PRIO 100 > +#define MAX_USER_RT_PRIO MAX_RT_PRIO > > #define MAX_PRIO (MAX_RT_PRIO + NICE_WIDTH) > #define DEFAULT_PRIO (MAX_RT_PRIO + NICE_WIDTH / 2) No one has used it in years, I don't think we need this change. Just delete it in one go. Is making p->prio independent from p->mm needed for other changes? If not, then we can hold off this change until we do so, otherwise, I would keep your original patch as is, and then remove the extra check when we remove MAX_USER_RT_PRIO. -- Steve