Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3299372ybb; Tue, 31 Mar 2020 02:23:44 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsDcjZQkvjCdpXrmBugi4zb0LrWdOs+kVKghIaM0aifWzQ1GOrZgxtjCpGuZOvoJjG1PN1H X-Received: by 2002:a9d:7590:: with SMTP id s16mr12257710otk.250.1585646623970; Tue, 31 Mar 2020 02:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585646623; cv=none; d=google.com; s=arc-20160816; b=EZT/RikhEum1c0GGvfG2AjJUZdbpf1zg/pqh6socV92XBm3JR3FtIzKrsaotQd4cmX mjcfh7od9+OWf84XzqJmCHWRoJgsy6GconfH5ryf/T8aXavNMzrNJ9NtjTFnDKxUQ5gI 8r8qI8DsmSFB7PA4JxYjuapeQ1DUvloLghnWqoWlOx6xRMzUNFrehmqtOF1VHtC0PTK4 zA/4uWEvHklRVKi4poKa3prCUvVWMbqapCOBOOVsPbyjRYD7n7aF1ka9Gl2jyBGYUjj0 yl8uXy6lN583tIvK7cM0pkoHczrqBqxC8D7A35U6wjNf0UqlA0DvFoZOEDXfclwkiCcm 6lqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xB6/tdgPKtVMtIuZosDTJg19XRL+NRVpUr2QH1ZNGQc=; b=YC6maDPuxLFKToWgVzMdl8tIS5PtyaXTyPPbD0qW7mSPXYS1sJu0KYrV8O85eAt2tR 0/WS60zFX72NUB8kG2mt2PSVL0mAfYa1iu79PQoqvUwhRpKwoNRg6QIH1KEDZk6/eXQt ZNogTEzfT3KVsnHCn7wz1ex9vn8WQmwQ1Q78vq0xeo3r9Aprmw4h6r9MPlCCsfkc2kLW 8oykxukYa2UR1LARd7GyJvVFqJ6RobL5EXpvMNV/l7fl2ajZaFQFSboPVmjnwlSjg4vg R6gaV/MD44Bo67fOAkjs/MsewTjCeqLE3UmKMZLaWHuI2gfsT/R+kT5xbZlSb1bZK1pM Qf7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DXVDXNLm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v67si6268722oie.127.2020.03.31.02.23.32; Tue, 31 Mar 2020 02:23:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DXVDXNLm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731304AbgCaJII (ORCPT + 99 others); Tue, 31 Mar 2020 05:08:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:50212 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730720AbgCaJIE (ORCPT ); Tue, 31 Mar 2020 05:08:04 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 2611A20675; Tue, 31 Mar 2020 09:08:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585645683; bh=obGgSUtZiDNXWWw0omhi8ISrvD7pcYvAEGbVEz9SNiw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DXVDXNLmLkJMWhmaUCGPQXl7LCJUD+mNnu85E0zd944smsSSeyQuqN9kBA2BJLXYk gtjNJp9uX5WV+JEGJgYMNYOjdPIuU5SfT82W7WIX4gZBzu70ivQ3Qub9u7VMiUsdUU Azj/sYFovy2Ja8HItThjZ1O7jIeWQQiA0GCM4T/w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Howells Subject: [PATCH 5.5 131/170] afs: Fix some tracing details Date: Tue, 31 Mar 2020 10:59:05 +0200 Message-Id: <20200331085437.601006118@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200331085423.990189598@linuxfoundation.org> References: <20200331085423.990189598@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: David Howells commit 4636cf184d6d9a92a56c2554681ea520dd4fe49a upstream. Fix a couple of tracelines to indicate the usage count after the atomic op, not the usage count before it to be consistent with other afs and rxrpc trace lines. Change the wording of the afs_call_trace_work trace ID label from "WORK" to "QUEUE" to reflect the fact that it's queueing work, not doing work. Fixes: 341f741f04be ("afs: Refcount the afs_call struct") Signed-off-by: David Howells Signed-off-by: Greg Kroah-Hartman --- fs/afs/rxrpc.c | 4 ++-- include/trace/events/afs.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) --- a/fs/afs/rxrpc.c +++ b/fs/afs/rxrpc.c @@ -168,7 +168,7 @@ void afs_put_call(struct afs_call *call) int n = atomic_dec_return(&call->usage); int o = atomic_read(&net->nr_outstanding_calls); - trace_afs_call(call, afs_call_trace_put, n + 1, o, + trace_afs_call(call, afs_call_trace_put, n, o, __builtin_return_address(0)); ASSERTCMP(n, >=, 0); @@ -704,7 +704,7 @@ static void afs_wake_up_async_call(struc u = atomic_fetch_add_unless(&call->usage, 1, 0); if (u != 0) { - trace_afs_call(call, afs_call_trace_wake, u, + trace_afs_call(call, afs_call_trace_wake, u + 1, atomic_read(&call->net->nr_outstanding_calls), __builtin_return_address(0)); --- a/include/trace/events/afs.h +++ b/include/trace/events/afs.h @@ -233,7 +233,7 @@ enum afs_cb_break_reason { EM(afs_call_trace_get, "GET ") \ EM(afs_call_trace_put, "PUT ") \ EM(afs_call_trace_wake, "WAKE ") \ - E_(afs_call_trace_work, "WORK ") + E_(afs_call_trace_work, "QUEUE") #define afs_server_traces \ EM(afs_server_trace_alloc, "ALLOC ") \