Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1407915pxb; Fri, 26 Feb 2021 09:55:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwExxaQMs87ixiVmloydS7G93xOxk3h+bDb2oewDw0hhOlxUqr+kRbvNbQL+H3X662x6J8D X-Received: by 2002:a50:be8b:: with SMTP id b11mr4704227edk.145.1614362101718; Fri, 26 Feb 2021 09:55:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614362101; cv=none; d=google.com; s=arc-20160816; b=e1GOPrw1tKwhJhCqsyH1BgpAUFXxN1IOUCX+Z9RN7sQG45bR/A9Xkh8fewuh1ufFJl htEQlk9d6O07rk0/pCx+LEfrfimNubFmGsx4ldQ29jSqekN4sMj8cSW4LxfS8PyrX3MB OaWFeLdXXDIam0rgrVZkQhoRE79wmi+QMWxfM8XOerBMOwE0502S0lzO3FfzCfev2OHe CGdtmNge8faVmdpXG6K9sCup0I8e07AoAKeO/f9qZm+DsfxofJB/2xX9uTslrIOPm0+V QlFtuf+FZXuIMA16ULeitLXXijF28sDjTjnnFD5O38rMOu0PRBh5p2tmls2CZhiKYFhQ uiPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=mdjXaDJ8610YzzIXmnpIkkhltaUD3S1/lZvKfTM1c6w=; b=DjWji4WrSzS73gCoi4KLadm0x8umFdJrzChE0P9AqY2t3XItVDeSd+LRV2PGAyCDvN GA9ROCf1EGORlJn+APSQM86rNvvF82Gmm0c+xjKo4T/5O3w7DqD6XYRUAA0P0SM3OZiS i3O+w5qjUW7PDToYuOdMYJ8KbPKoH1R36GvQzAA7JbcotA1JsCKZ2cN6mGb3mWwhToQM 3asC/sPRynUFUS1d+hLJElndiaHSIQCPF6mBv2mc47x22YmQchZlVThBocUhmeJOa+Ph FeQcT9VYpjFV+xYgpTqbUuw0y0QGeVBSI/nOp1OpzCOXJ1iivQxNgep9IWr4dpWHeiJB 2U4A== 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 j12si6280941ejt.34.2021.02.26.09.54.38; Fri, 26 Feb 2021 09:55:01 -0800 (PST) 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 S230195AbhBZRwY (ORCPT + 99 others); Fri, 26 Feb 2021 12:52:24 -0500 Received: from mx2.suse.de ([195.135.220.15]:54850 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230049AbhBZRvu (ORCPT ); Fri, 26 Feb 2021 12:51:50 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 84CDCAFCC; Fri, 26 Feb 2021 17:51:08 +0000 (UTC) From: Davidlohr Bueso To: tglx@linutronix.de Cc: mingo@redhat.com, peterz@infradead.org, dvhart@infradead.org, dave@stgolabs.net, linux-kernel@vger.kernel.org, Davidlohr Bueso Subject: [PATCH 4/4] kernel/futex: Explicitly document pi_lock for pi_state owner fixup Date: Fri, 26 Feb 2021 09:50:29 -0800 Message-Id: <20210226175029.50335-4-dave@stgolabs.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210226175029.50335-1-dave@stgolabs.net> References: <20210226175029.50335-1-dave@stgolabs.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This seems to belong in the serialization and lifetime rules section. pi_state_update_owner() will take the pi_mutex's owner's pi_lock to do whatever fixup, successful or not. Signed-off-by: Davidlohr Bueso --- kernel/futex.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/futex.c b/kernel/futex.c index dcd6132485e1..475055715371 100644 --- a/kernel/futex.c +++ b/kernel/futex.c @@ -981,6 +981,7 @@ static inline void exit_pi_state_list(struct task_struct *curr) { } * p->pi_lock: * * p->pi_state_list -> pi_state->list, relation + * pi_mutex->owner -> pi_state->owner, relation * * pi_state->refcount: * -- 2.26.2