Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp364970pxk; Thu, 3 Sep 2020 01:30:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBm8dT5zsFz9fgZbLaDII5yd0u103xZUVUhoOnaf+3P+0JaXX8byX2Za6nK3Qc3toVvB1g X-Received: by 2002:a17:906:af42:: with SMTP id ly2mr931282ejb.362.1599121843648; Thu, 03 Sep 2020 01:30:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599121843; cv=none; d=google.com; s=arc-20160816; b=wvLapI1ZqH/omcZ6gc4HeLEZFO+oNVsqQXNxzHJxP0dRlZUf1e62PYEqsOkKtYVnTs wOjlzFOAy5+EqjWYqLzcR4JBx0OH+A6ZLM3vt6i/MJj0c8doDjzFl6u5DKcheitqOvOy ReBMKv7H5yXBK7VL0S/DckUd/jicmTw8mttXwnVpvzZlhZ/WevjQSteMe9VY+tz7ee1A kh/6yAUg/69c/9KBa36qb9IwzlUB9QEnPi1SZjCeNcU8qXrzsuoQbg3qBrUbtNGJK1Q1 jgtxJC+njfWXmGRHMkDgMG8M2LF1RSgB9Lto1FSPWVrmypFz8VPMJiVmENRPwAsHpPPq wj/Q== 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; bh=bhcKtwgLorj415W1yWL2uw677fLgrIqoMwVjPv0+uIs=; b=y2srMKKO2sxzP6v0U4Af5vm9dOCW/piyASSYOZFm3iusVLJ9jKq3oy5TglC/MzuGRZ /OFaw5aO2jqaXDK8mN6Dfvd+9bF7paTdoN8ffidBJZrVltPQuCUUKayom6F6t7O1zzB1 3ImtXcJVxJc295w1fBg98WuUzAMmXUvvcFrZdmVL6y+rMDIVGkyjHTSDmV2TuVL9EDkV fJ0fGYfU+Wk65GKl/fmS/Zhh3aEbUaZVtrtpiNomLZMYmOnSXrS6vFdNL4UHzc5nS53e NleA/7wjmIDp0hsW++JyUS8FbTZdqPl0csQn+svUysZ+OoUzLV/aYbACsvIBEBwlfbAu r6Dg== 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 cc19si1519891edb.488.2020.09.03.01.30.20; Thu, 03 Sep 2020 01:30:43 -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 S1728140AbgICI11 (ORCPT + 99 others); Thu, 3 Sep 2020 04:27:27 -0400 Received: from elvis.franken.de ([193.175.24.41]:50522 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727857AbgICI1M (ORCPT ); Thu, 3 Sep 2020 04:27:12 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1kDkaL-0000I1-07; Thu, 03 Sep 2020 10:27:09 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 4DDD5C0E86; Thu, 3 Sep 2020 10:24:40 +0200 (CEST) Date: Thu, 3 Sep 2020 10:24:40 +0200 From: Thomas Bogendoerfer To: Davidlohr Bueso Cc: oleg@redhat.com, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Davidlohr Bueso Subject: Re: [PATCH] MIPS: Use rcu to lookup a task in mipsmt_sys_sched_setaffinity() Message-ID: <20200903082440.GH6220@alpha.franken.de> References: <20200831201402.2837-1-dave@stgolabs.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200831201402.2837-1-dave@stgolabs.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 31, 2020 at 01:14:02PM -0700, Davidlohr Bueso wrote: > The call simply looks up the corresponding task (without iterating > the tasklist), which is safe under rcu instead of the tasklist_lock. > In addition, the setaffinity counter part already does this. > > Signed-off-by: Davidlohr Bueso > --- > arch/mips/kernel/mips-mt-fpaff.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]