Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3148950pxb; Sat, 9 Oct 2021 03:10:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1lUc/wpNH6EJVAAyZiCiKW7h4RWLhJLdZ+urkS9dpEG2oLLB/eeiYjp3CVGnX8WgEO8ig X-Received: by 2002:a05:6402:358a:: with SMTP id y10mr22491130edc.238.1633774205982; Sat, 09 Oct 2021 03:10:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633774205; cv=none; d=google.com; s=arc-20160816; b=KNuLbq+owZ4kolQ60AGYJXTUiXJL+JTj41ioiPso7R7ZYOMIHntDJkzHOqiaMiY7uQ 2DTRS5FiPnRwRBtgHagIhaKuLaVvhq9o8s+wo2nu5IQA+58aLfY9B18ZGScvJ4/8E4ar awUg0imdoSlutOook2dycbpFc2gyZamPRrA6A8YbXKp8NCpbs5S9efGHbH/Wnn2J9sbG 0fFuzPnqGQtRkelyqQTEWDF7nkKOq1uUUT07J+MfssgF2MJTn4P5uTMXc24ps2yL/usB wHQN5drFrhDAadHv6+P6ZyUtGl3xbAIQJlElQCtBW/W6wFnLp/l50iH9Z2dLg9cQxCXp XLCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=a3KOA5bYm7mB3mAcz23zObPFJtQLrQkP0R9pXeSeEu0=; b=EsovRXYpwkBj5D27K5pD7Fg/O46KYiKmahqNYGKPCafOy+dxrhwOO4ZiW0WVYuFBP3 EK2CjYcKa9bt9yo14xQFKrJMORM8PY1+/Vcz3Iku7hPV4DkM1dAlo9EK9kyHTbORtAoe JiOrDYr4dQZZw1JDMmgMumc44AJ6iTPwHVmtsIYlwbNzbo2gBlK7hifLsta0IYSu/AxZ ZCIK9YKD+WbuPbb5lDHOmzkGt1AXiKlkT+fBJSDgKSw+8gmlxcEwstUbyPSxNzMpbAeP L6OIsFlU0JdVAjkQW+7zUsPsFYQAR4EqI0v2F0L+SPoNtP6bjC+k1psMFZ17H8RhMCgj BKqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=aPeq6Fk2; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si2499352ejj.563.2021.10.09.03.09.42; Sat, 09 Oct 2021 03:10: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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=aPeq6Fk2; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244797AbhJIKJq (ORCPT + 99 others); Sat, 9 Oct 2021 06:09:46 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:49368 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244599AbhJIKJL (ORCPT ); Sat, 9 Oct 2021 06:09:11 -0400 Date: Sat, 09 Oct 2021 10:07:12 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1633774033; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a3KOA5bYm7mB3mAcz23zObPFJtQLrQkP0R9pXeSeEu0=; b=aPeq6Fk2KbZ2qR9aJX2htVMnun3g2wuX7bHO1CoRw41K4s2i4tg0flA8WjOzTbNjXZpxK+ +81ol1Si23NPiwxRERT+2Vx3MUtklSTXf3G7pR3QQ+NzVFvEoHbuSRf1ccMmwGK/lsZC9K TlizJscWWApSxQLSw26/qK+9Ww1pqcVNoxDIhmCxEBtQzadfba0KxwPWVNzKpcBmgqMD89 W87uLnn4VP6XYibUzMsE4eqlTnyenzlKmdyoJxsJtb+FhQqK+DvkeoxgD8Rxz1N4z9oQbO P9DtbIs7kYtX2pvF+zaUTGBrFoqzEnkl6YRfoc7uYuFOaV3sLujQDXDRarlWgA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1633774033; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a3KOA5bYm7mB3mAcz23zObPFJtQLrQkP0R9pXeSeEu0=; b=Dk7Bmf0sueRXkz8OsNR6qki+Nm2d0xlvHAaymoFfOI6Hu3xdDpkUAVJ//4+qlmg0cUknZ7 rr5FohUrIG1v3dBQ== From: "tip-bot2 for Peter Zijlstra" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/core] futex: Rename hash_futex() Cc: "Peter Zijlstra (Intel)" , andrealmeid@collabora.com, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20210923171111.300673-8-andrealmeid@collabora.com> References: <20210923171111.300673-8-andrealmeid@collabora.com> MIME-Version: 1.0 Message-ID: <163377403294.25758.5913482114868148751.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the locking/core branch of tip: Commit-ID: eee5a7bc96becd7cdb8e4fabd327ca5e49136704 Gitweb: https://git.kernel.org/tip/eee5a7bc96becd7cdb8e4fabd327ca5e491= 36704 Author: Peter Zijlstra AuthorDate: Thu, 23 Sep 2021 14:10:56 -03:00 Committer: Peter Zijlstra CommitterDate: Thu, 07 Oct 2021 13:51:09 +02:00 futex: Rename hash_futex() In order to prepare introducing these symbols into the global namespace; rename: s/hash_futex/futex_hash/g Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Andr=C3=A9 Almeida Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Andr=C3=A9 Almeida Link: https://lore.kernel.org/r/20210923171111.300673-8-andrealmeid@collabora= .com --- kernel/futex/core.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/kernel/futex/core.c b/kernel/futex/core.c index 88541fb..032189f 100644 --- a/kernel/futex/core.c +++ b/kernel/futex/core.c @@ -279,7 +279,7 @@ struct futex_hash_bucket { =20 /* * The base of the bucket array and its size are always used together - * (after initialization only in hash_futex()), so ensure that they + * (after initialization only in futex_hash()), so ensure that they * reside in the same cacheline. */ static struct { @@ -380,13 +380,13 @@ static inline int hb_waiters_pending(struct futex_hash_= bucket *hb) } =20 /** - * hash_futex - Return the hash bucket in the global hash + * futex_hash - Return the hash bucket in the global hash * @key: Pointer to the futex key for which the hash is calculated * * We hash on the keys returned from get_futex_key (see below) and return the * corresponding hash bucket in the global hash. */ -static struct futex_hash_bucket *hash_futex(union futex_key *key) +static struct futex_hash_bucket *futex_hash(union futex_key *key) { u32 hash =3D jhash2((u32 *)key, offsetof(typeof(*key), both.offset) / 4, key->both.offset); @@ -885,7 +885,7 @@ static void exit_pi_state_list(struct task_struct *curr) next =3D head->next; pi_state =3D list_entry(next, struct futex_pi_state, list); key =3D pi_state->key; - hb =3D hash_futex(&key); + hb =3D futex_hash(&key); =20 /* * We can race against put_pi_state() removing itself from the @@ -1634,7 +1634,7 @@ int futex_wake(u32 __user *uaddr, unsigned int flags, i= nt nr_wake, u32 bitset) if (unlikely(ret !=3D 0)) return ret; =20 - hb =3D hash_futex(&key); + hb =3D futex_hash(&key); =20 /* Make sure we really have tasks to wakeup */ if (!hb_waiters_pending(hb)) @@ -1731,8 +1731,8 @@ retry: if (unlikely(ret !=3D 0)) return ret; =20 - hb1 =3D hash_futex(&key1); - hb2 =3D hash_futex(&key2); + hb1 =3D futex_hash(&key1); + hb2 =3D futex_hash(&key2); =20 retry_private: double_lock_hb(hb1, hb2); @@ -2172,8 +2172,8 @@ retry: if (requeue_pi && match_futex(&key1, &key2)) return -EINVAL; =20 - hb1 =3D hash_futex(&key1); - hb2 =3D hash_futex(&key2); + hb1 =3D futex_hash(&key1); + hb2 =3D futex_hash(&key2); =20 retry_private: hb_waiters_inc(hb2); @@ -2415,7 +2415,7 @@ static inline struct futex_hash_bucket *futex_q_lock(st= ruct futex_q *q) { struct futex_hash_bucket *hb; =20 - hb =3D hash_futex(&q->key); + hb =3D futex_hash(&q->key); =20 /* * Increment the counter before taking the lock so that @@ -3177,7 +3177,7 @@ retry: if (ret) return ret; =20 - hb =3D hash_futex(&key); + hb =3D futex_hash(&key); spin_lock(&hb->lock); =20 /*