Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4065726pxb; Mon, 8 Feb 2021 07:10:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyabVIas6ZbT073yKWypg9Xm69gWF06ntKQSxPncUV/JaFIsqztEkIFq26PYBUmLQR8p4wG X-Received: by 2002:a17:907:961c:: with SMTP id gb28mr16754401ejc.393.1612797017223; Mon, 08 Feb 2021 07:10:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612797017; cv=none; d=google.com; s=arc-20160816; b=N30NPOItpmILfT69kZBLZjpgmSFzCj8U3DBTnCfj9vZvPDyprme0WNJFA1oeKTlvQi rl19WeKp1YUyeafMr39bsWxWBIQYy27ftIgllazKByqnqQtUzp9OaSBfbJ9vdr+doySB JcB87yrtHXKC/YTd4ubOoUQCSEf0m83mF6CMmlFP/gfjubyHwJjbhDEcsZkh2y1jKcyJ /HAZVY/ehEZC2Hmz99oLJJH42bp14GE1KqRZ1ofx3L/PpXNSMdB1HPxkTjhIZvuHAd62 T9R62soJHwr+ccuIX2Fag0ymRyDhjbhBPvzChuLETue7JGGDnH5eoRzlfxP3EgEFZ/hA d0gw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=N12aidyyb4wGAn7nxGBYS9npnehsxBMZ8e0mhZG2gQc=; b=KI08z0YqIGAvRKC3jCtrvzKxbkkmi14hFac6MfBH1Txvv4Y0TqBxTGnUoZYqbRKcfe ffeSPU89ZAzORwwtgAd4yFlHiURhsGC1AByhryAgpOLvL00ECm/tWR5GBQDt8j0fC6hv ZzIlZTAbHlR4IGVtaaNSMieRbeEeHwo/lWMGnJPT4v/v+W1Udko+dafiCalZsmSqBSMA pvPMAKYTRGFx1Luag9uFHhDCe7EoNsAtbDMXAxAN8A0UCX2UfEQtbvVANQYhhwgjN4t+ cErFPB82v2HzZHaM58ClN8r52OdiVQ/TIvqJ+lsniIB8XcO343vy+VIptqSeS9hivvQP iGyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=K9NsWMLK; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j10si3045761edj.128.2021.02.08.07.09.41; Mon, 08 Feb 2021 07:10:17 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=K9NsWMLK; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232431AbhBHPIq (ORCPT + 99 others); Mon, 8 Feb 2021 10:08:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:52070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232624AbhBHPD3 (ORCPT ); Mon, 8 Feb 2021 10:03:29 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D558A64EAC; Mon, 8 Feb 2021 15:02:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612796547; bh=Mqh/5/eOQZTUPIhkMFK35dDQzNrn3eaAwLqgMWQbFOw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K9NsWMLKogi9tIBijsgKLOrcycS23yT6VgfngsW88BifHoodFINbgZ63q+2vHigfK P8KqsRLWS2di93/qoqrD0SfRx3DcZ5dEAXY/ewtoci8X+Vut5S/ETOHaN4hja9TmrQ alwVM83ywIpZi6a7ZIsHuKEfSgv2bx5TQsZU0pO8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , Thomas Gleixner , "Peter Zijlstra (Intel)" , Lee Jones Subject: [PATCH 4.4 09/38] futex: Use pi_state_update_owner() in put_pi_state() Date: Mon, 8 Feb 2021 16:00:31 +0100 Message-Id: <20210208145805.651620845@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210208145805.279815326@linuxfoundation.org> References: <20210208145805.279815326@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lee Jones From: Thomas Gleixner [ Upstream commit 6ccc84f917d33312eb2846bd7b567639f585ad6d ] No point in open coding it. This way it gains the extra sanity checks. Signed-off-by: Thomas Gleixner Acked-by: Peter Zijlstra (Intel) Cc: stable@vger.kernel.org Signed-off-by: Lee Jones Signed-off-by: Greg Kroah-Hartman --- kernel/futex.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) --- a/kernel/futex.c +++ b/kernel/futex.c @@ -874,10 +874,7 @@ static void free_pi_state(struct futex_p * and has cleaned up the pi_state already */ if (pi_state->owner) { - raw_spin_lock_irq(&pi_state->owner->pi_lock); - list_del_init(&pi_state->list); - raw_spin_unlock_irq(&pi_state->owner->pi_lock); - + pi_state_update_owner(pi_state, NULL); rt_mutex_proxy_unlock(&pi_state->pi_mutex); }