Message ID | 20201123121806.393806213@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:ae0b:0:0:0:0:0 with SMTP id s11csp1954553ilh; Mon, 23 Nov 2020 04:29:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtitFj8+DYPXJjN5eg/JiXuHhZt29tOddStT31LgpgNf3wUdEg7I/89bE5bXWS7TG9e/eA X-Received: by 2002:aa7:d8c4:: with SMTP id k4mr45893316eds.248.1606134577950; Mon, 23 Nov 2020 04:29:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606134577; cv=none; d=google.com; s=arc-20160816; b=qpWB5R64sN9HLlSwyPm5/9ED+6mhBPYrjlgjRRZZo8AWNjHOa9aXJq/EZAsK5NWmGS 71jYYPi75z+CLK+v6dNv2tQdWZzEwOwAj/0zZV4/Jv2pz2bnoWDwkHTT4U2dBVTHQITd rZ8nfDBi304SgG9vuzgJn9Zez3EUZ2cmYKgErqk2KojpNWnuv7ssC0tG6HUhKzkoaEnA RIThBollDKjSooVT3vI2SpMjNyhtLBpfRm4Zff92+DZN8JT5ssAPXd7DCHwAt5sebxiE trCLMhkTGk/UHByvkENqgm86ABhyX5ljvrrguVDVM96nzFIU0vFmtOKcgLI80h+fzvUn 9LXA== 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=wy0K2apmwrgifBsIwsXZdnoFwqzLVAqIBieSd7dCzCY=; b=QWjsf97ge20PinJovYq91V8e4JYgusEO8q+VImtaCDgvbA6z/Cd/k3GknYIue+1YNq ULMp+epjzbdj+9vtuNWLOyCyWwfj5gXEGFNco5Du6pFYbXoTrJLUymWBmsoSeTeuCEaQ NdHXAtrjGVAuFpz33rAlgDbXhJvo6OqWKzyEX3u1F9ONvJImQ+ysyqDWVGRM/Iff/mlg 2K6vlNd7F5PaBpT+hE2EoW2xRbKSGZgBfj01f81LBXtjNrLF/LWe2RC52HYqCm5nvbL2 fcLMQO4/o5GTyyeIiO3xpDJ1o5vvkOyaUOnx6uHVr15BTCKbA0cYGpbgY814/9YKB2yI ODiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NdFDRIn4; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c6si6565388ejr.584.2020.11.23.04.29.37; Mon, 23 Nov 2020 04:29:37 -0800 (PST) Received-SPF: pass (google.com: domain of stable-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=NdFDRIn4; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 S1730547AbgKWM3H (ORCPT <rfc822;semen.protsenko@linaro.org> + 14 others); Mon, 23 Nov 2020 07:29:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:39514 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730544AbgKWM3F (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 23 Nov 2020 07:29:05 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C9A9C20781; Mon, 23 Nov 2020 12:29:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606134545; bh=NGE/0HDnAS+V8bvF7zR6cxDjXawGPNrEPal/aIYCHsc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NdFDRIn4Ir9ZAT297g9pig8cWDRYYySzfstnv4JCOof2dg/Kisj1x9GmYmNFuql+M D/4Z+q3Ezgtt4FECpMo598sXRlgJuSSRueH3PfrW01ZpbkpV+jMVpIyMGcPC6utYEP +5DYagX6jZPY8ZcAdB4hVCtyLcSstjJS5odXm1s8= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Leo Yan <leo.yan@linaro.org>, Jiri Olsa <jolsa@redhat.com>, Arnaldo Carvalho de Melo <acme@redhat.com>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.14 28/60] perf lock: Dont free "lock_seq_stat" if read_count isnt zero Date: Mon, 23 Nov 2020 13:22:10 +0100 Message-Id: <20201123121806.393806213@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121805.028396732@linuxfoundation.org> References: <20201123121805.028396732@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: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/tools/perf/builtin-lock.c b/tools/perf/builtin-lock.c index fe69cd6b89e1a..6140b0548ad7d 100644 --- a/tools/perf/builtin-lock.c +++ b/tools/perf/builtin-lock.c @@ -620,7 +620,7 @@ static int report_lock_release_event(struct perf_evsel *evsel, case SEQ_STATE_READ_ACQUIRED: seq->read_count--; BUG_ON(seq->read_count < 0); - if (!seq->read_count) { + if (seq->read_count) { ls->nr_release++; goto end; }