Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp69857rdb; Thu, 25 Jan 2024 08:29:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHDBqbnigNAJvvV0xoYTPXpxE0BzwqfdXS2dAerO3kKaEJ1tZno2pQTZj5gQtnxj5IngMr+ X-Received: by 2002:a17:90b:1805:b0:28e:1fd:9710 with SMTP id lw5-20020a17090b180500b0028e01fd9710mr842992pjb.9.1706200176055; Thu, 25 Jan 2024 08:29:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706200176; cv=pass; d=google.com; s=arc-20160816; b=tpZ/la38jlSZY65jBpeREtWxAEk+2K4DTuXj1mpo1INxTjPaBYsmUL+7YgBOpdshbt /ye6IV5gPamuQJgJR3F20IdxodNBrf0ghCpQb8lCpwFgNlKGdamNfhEbxtnlFun/9GUc GAIuS4y4sr6HrSNA+RNfLt69kHK+McGf644q+P+XAtwXVLlz6WOWPXFRTg50ozjTjPy8 veiFtPMiICBk7zAU6jDEpa77YirsBcyRdDpPXh65lla7jT+DQLxO5GNfTMDVBKff1b26 +yKetgDmtwsDmFY3XrfYJD3G0U+D2WhtTblfsA3RwJYuR2SsY+J48EaMTI3pKAYE6Iur Pctw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:references:in-reply-to :message-id:date:to:from:subject:dkim-signature; bh=6J6/ugdZHTFrbsc64xj2mhzAa6lkE5Z7aw0ZREMZjiI=; fh=Mys3y4MwsHRytUQMpdfGBn3oGRYLcLloxNwkFYMYMmg=; b=UOtHQIO0WkQIdDwxpK/pk/d2clXqscI2J7oryBIIqtzxJxkhqeaL7Fg+aWP9jTK35O V2MJioRixGbx1xC4yV6aVFBlcWK/7aFnurfIFjhapa1snzM2Pbjz7+Rkspv48ItDy2cS g5DpgU9qgx6/Ygz5EMwcF7nOTXJrfzOy53ij/RQhSATDiCqNzB7i2OATtRClfDgYjRaj RlzkjmCiWhAW/Vbu9p3YKY9yv0F0pZdIWoL/FCJ7PwQIbq6kUnQrNAL7ADHTPhBmdGFY nhxoyMKytTDl813yph9EgPOBSSPfOSVSj6oSX8e2swsUvaWMIGk333H7becR6GejrM3p bgdQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iprIkzQm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-1393-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1393-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n14-20020a17090aab8e00b0029079ae51c2si1549364pjq.147.2024.01.25.08.29.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 08:29:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-1393-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iprIkzQm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-1393-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1393-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8C338297B8C for ; Thu, 25 Jan 2024 16:29:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED5C512A151; Thu, 25 Jan 2024 16:29:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iprIkzQm" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CA41012A14C for ; Thu, 25 Jan 2024 16:29:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706200159; cv=none; b=unMzz0lsXErSIn2qLkWXISSqf9bXxdZKk1sCL303jUIV1YHKsQ74BJSPwu/NFiL7FlFDcI0B2KKzuIBsy6lglv2UElyjN3DT+ULlhWwLIJiopIrCQZj4ZXPWxHZi5IAQL+h2zEwyBgVzABw5KwlxVr60pvt1tjyYmEX5S94n/m4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706200159; c=relaxed/simple; bh=oyWw8rysShVN6IpXiV9QH8TKsHat67OtD+iwKutFCOY=; h=Subject:From:To:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pAAVnzXq4IeFxu0isBCemfkbuLEU1kVelrkBY6FhEHHzLnCenuyHIJRTUSvtC5ulWwI4K6ebzGP0bUL3SNliP/a0zZs59skqhLMS9F2bKGMk+0nzQye1T2EaxIPc72CMqtBeOMSRwLebvjq3r63p1zCPWGg0VcYEkfw4gFH/VzU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iprIkzQm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 364CBC43399 for ; Thu, 25 Jan 2024 16:29:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706200159; bh=oyWw8rysShVN6IpXiV9QH8TKsHat67OtD+iwKutFCOY=; h=Subject:From:To:Date:In-Reply-To:References:From; b=iprIkzQmdrGzPKFMH+J1mfZmhFOMR0+JRrQg+OaFU6szpPUmy/zsjohnpP1ZlW/q6 SwXfmjGbEbh3e/tRmW9EL3vO7oJIsrZBq+aCPgDcq+z/RBTf5+I7BZTZM0LSL7/8IF W/PJMFIDAdcv9ytaAWHQMoIgVeMhRxKP9eeMMeX3N+3XfrfpIJmLDm1qGU0Vb3SGHX bso0F2Omyodk3cBLJR0AUZNSHDwKiDCWb8xahCl1hgmsTvEIcCuTXdE8X6300RZN1a cT6qVy/waeaOnJcVWdxnt9tdQPIfOgzyNXuKO76DRJDjK1bG0avBh8WLNTS58I2eob t5kDtm86vuDvw== Subject: [PATCH RFC 06/13] NFSD: Rename nfsd_cb_state trace point From: Chuck Lever To: linux-nfs@vger.kernel.org Date: Thu, 25 Jan 2024 11:29:18 -0500 Message-ID: <170620015818.2833.16183397044635913129.stgit@manet.1015granger.net> In-Reply-To: <170619984210.2833.7173004255003914651.stgit@manet.1015granger.net> References: <170619984210.2833.7173004255003914651.stgit@manet.1015granger.net> User-Agent: StGit/1.5 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit From: Chuck Lever Make it clear where backchannel state is updated. Signed-off-by: Chuck Lever --- fs/nfsd/nfs4callback.c | 4 +++- fs/nfsd/trace.h | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index 9f5aebeef83c..1c85426830b1 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c @@ -999,7 +999,7 @@ static void nfsd4_mark_cb_state(struct nfs4_client *clp, int newstate) { if (clp->cl_cb_state != newstate) { clp->cl_cb_state = newstate; - trace_nfsd_cb_state(clp); + trace_nfsd_cb_new_state(clp); } } @@ -1383,6 +1383,8 @@ nfsd4_run_cb_work(struct work_struct *work) struct rpc_clnt *clnt; int flags; + trace_nfsd_cb_start(clp); + if (clp->cl_flags & NFSD4_CLIENT_CB_FLAG_MASK) nfsd4_process_cb_update(cb); diff --git a/fs/nfsd/trace.h b/fs/nfsd/trace.h index c134c755ae5d..6003af2bee33 100644 --- a/fs/nfsd/trace.h +++ b/fs/nfsd/trace.h @@ -1371,7 +1371,8 @@ DEFINE_EVENT(nfsd_cb_class, nfsd_cb_##name, \ TP_PROTO(const struct nfs4_client *clp), \ TP_ARGS(clp)) -DEFINE_NFSD_CB_EVENT(state); +DEFINE_NFSD_CB_EVENT(start); +DEFINE_NFSD_CB_EVENT(new_state); DEFINE_NFSD_CB_EVENT(probe); DEFINE_NFSD_CB_EVENT(lost); DEFINE_NFSD_CB_EVENT(shutdown);