Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2282087ybk; Mon, 11 May 2020 17:11:05 -0700 (PDT) X-Google-Smtp-Source: APiQypK+ZM+Qn3zkcJEnE7MA2LWWoAs31vsN+Ad8DeW3yK/Q3mONvn2oxnDNOY8+21Un2BrOAOSm X-Received: by 2002:aa7:db0b:: with SMTP id t11mr14906496eds.304.1589242265683; Mon, 11 May 2020 17:11:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589242265; cv=none; d=google.com; s=arc-20160816; b=pQFrkEdv1CHh22yiVQ0P6EMrFgbeyKoqOA0akC+W5Xyy3eVQobmUEkAyozVtD7Mdve R7/balM8cywMDVzmFss8azBvwXN95jnlgbToT5mopuFIASuGFOSS74/og64YB7lzXqBj bc9Nt90zBtf6QZ/N1i9qIcCCmMf9a2t57FPMM5EA7DnbT2P0zd3xu7tOSnxpScXdBpZi p0AB3xLXIXGc5lmHQuB/DsZFTY7iNkAJ03DbD456amuVZAsXGZmvP0djI/JAub7qcoKS FK8oapESH9KcCJdmNXm2J+EpwTdmv6eh3RHCKHg9gcccU77yNyMOAVg8oGOf7Cgc0yW+ aLXA== 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 :message-id:date:subject:cc:to:from; bh=rjVMBU2muUAXscdOIjuabiyqt42/OYpKPFR1meHUWqs=; b=spfGQzsrObqZbBoFSxG41YgISCPq/bdKzUYv+yEE33IkxoegoP7PyhYsCpEIDppzCD uMHG0KtMUW1inThOp/jAMCUElM9wEh9ZsGynrlC6XLYgar8OeSxTfnsZg0PR7JeIKgsJ k6OPQTssXM50FJN/eikrCR3mNfcuMTuW1uxhEIogvyrB3G8cibUXXy7bUqNDN5IZuVTL Jv+P8qWIOCinyk8zYkxlcvfAuDoeZwF4aI6oNdwMPQoPWZFC2dufie4QkeviVMYyREDF ez5kWL/Ixeo0Cc5utyDpejRJqj9YIG7SV9TClZrp9cK9CvpSsly3u753zTe3MgPmrxWI AROQ== 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 o5si6769967ejr.501.2020.05.11.17.10.42; Mon, 11 May 2020 17:11:05 -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 S1728273AbgELAJV (ORCPT + 99 others); Mon, 11 May 2020 20:09:21 -0400 Received: from mx2.suse.de ([195.135.220.15]:34678 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725836AbgELAJV (ORCPT ); Mon, 11 May 2020 20:09:21 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id D88CFAE68; Tue, 12 May 2020 00:09:22 +0000 (UTC) From: Davidlohr Bueso To: akpm@linux-foundation.org Cc: peterz@infradead.org, oleg@redhat.com, paulmck@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, dave@stgolabs.net Subject: [PATCH -next v2 0/2] kernel/sys: reduce tasklist_lock usage get/set priorities Date: Mon, 11 May 2020 17:03:51 -0700 Message-Id: <20200512000353.23653-1-dave@stgolabs.net> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, The following are two patches that deal with removing the tasklist_lock entirely in getpriority(2), and reducing the scope of it in setpriority(2). This also aligns somewhat to what we already do with io priorities - although there both set and get rely entirely on rcu. Details in the changelog but this passes ltp tests. Please consider for v5.8. Changes from v1: - split get and set into two patches. - improved changelog. Thanks! Davidlohr Bueso (2): kernel/sys: only rely on rcu for getpriority(2) kernel/sys: do not grab tasklist_lock for sys_setpriority(PRIO_PROCESS) kernel/sys.c | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) -- 2.26.1