Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp820871rdb; Fri, 2 Feb 2024 05:15:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQ0Ly+91ZAim7aOIfIMiR1gkgr26D6P9Ddaf/YEfvbwhhXpMsvIv6/9M8XnlFkwpfTL3xN X-Received: by 2002:a05:6a00:1989:b0:6db:afd4:f54c with SMTP id d9-20020a056a00198900b006dbafd4f54cmr2650127pfl.0.1706879718862; Fri, 02 Feb 2024 05:15:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706879718; cv=pass; d=google.com; s=arc-20160816; b=T8alfPGvDtih6KijbQh10n5/lK4a3G84HqROgopt4w+D7RYu9t4jOypiz5hsSB7ZTF EP73PKdovtwSYIqnB2BEQ0broHAj8bl3dcjaPz6pVTxoUs1s9FTf4BsooZSueABdOzgF eoFbUXHXtoGqTNQgTUQOCPpouL6mTMtDZ2mjgcBRakIwJVPoaDV8PVdNrF2YjIDnr6RA GjgdSNyvWIVB0w+D2X642RzGeisDuJgNyi6ALxm07YriTTy6sRQjsNKN/cFCksACTyWw JCfvV5cmVJbLr1nJXAhoIY2ye6RBq7Weyj/9IsLKzwS+5dchLITG3M5ADUBwjsd8CW3K UAOA== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=tlYuin2d9cs9flbR5zn/xehFd1eWl3631fmtRw4qtQk=; fh=d+N28nAoDJZY+dwGckgVYqlHCDuMvFhGNQJ5VolzyGE=; b=uZJ9GzPLMmiHDvIEY7v2iSGAAU+IpZvqtGm3IkVX8VT0OFZkv3+BNf+b5aSda8aR9t vXyupAutLpyQ1lb423yOonkSHZBD+ICO7naZffQKbSg//Y4Hsnhjpa0vt5uOUaJxy19f +Rhsaz6rZPItqwonxN80N55xk0AFVZySre0lxWJ/gQpjAdfheOULq/xPBF8IGodcMt3G lZBCM2IA+QBGnAYI9AOdPNre0Ll5x/Lv4FsJ5BzjcKvfKxAbXMrprf7p+uSBAZP0aCXd qxB8Ob2vjOZe18YGRjthfk+dq9Gxlhzv8HTSi2hm5J9dm4Nm+GP+nUK5CrHZNkbRfpZw kmKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ARpYfK7K; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-nfs+bounces-1707-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1707-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=1; AJvYcCUzA5QAkvWHSr61An0dUcdx5LqUIiz7zVkm5Jn5LUARMcy7LeIL/s/bF2WT8mQS46ZLUVsOF2Wk75gBHSed+6MyZSynqrbQ7J3/ai1x9Q== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h4-20020a056a00170400b006dfdfa955b2si1551627pfc.210.2024.02.02.05.15.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 05:15:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-1707-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ARpYfK7K; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-nfs+bounces-1707-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1707-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 90FC2B22337 for ; Fri, 2 Feb 2024 13:01:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4242D1FAB; Fri, 2 Feb 2024 13:01:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ARpYfK7K" X-Original-To: linux-nfs@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 75605441B for ; Fri, 2 Feb 2024 13:01:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706878881; cv=none; b=m9Eic7SOsgeswXwEfJSWAvV9T2+K5I51e9MW9IV6iQ03mtdJkzTcBeN3SJPLbeOGWxlzwdO99N7yR9PwpBc/NroCYXSuQqUfNYsm8SEI0mJBjMl6Pcw0NhCN2F7fQcJo9PXf1ME2Ew4RivDkPx+h5px7hJPQorAMxwO9HplPAW0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706878881; c=relaxed/simple; bh=/0Mr1boT5dgO1dJmNwB3DKoUQ93sm1s5a0rQnu8TF4o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XtOXjaFD+lrlEvl6i9ujT2qi3oHdYmHXAQnu9oVRdC/4Yf6E2WTfS+imATUK7TGYRt5voHEKyHk9vGK/3W2nPKHksfUbDjt/fJXxEMRgLqXd4zvLDgUdbMZYAqVYX2ro3EI96EDZK6sUoj44Gof8cnyju+gpk4grsUTpEwfaQNI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ARpYfK7K; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706878878; h=from:from: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=tlYuin2d9cs9flbR5zn/xehFd1eWl3631fmtRw4qtQk=; b=ARpYfK7K728sqHwJiRR8PKiQTqYJY/ar4xvtREgWlmHhobOQTlSGuX8C20M/pIkrs0X7l4 0VZ94ParI2St4CkHptiWJY85O0JO7Wr829wATw488h271lMadIblHZwOsBo45Q0/5nA1gx NGxMeCLzVlTwW1vesw1QSRFB4wo9ATI= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-131-aJP49xyjPBWIfrKJ_a2GaQ-1; Fri, 02 Feb 2024 08:01:15 -0500 X-MC-Unique: aJP49xyjPBWIfrKJ_a2GaQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8A0F58A7F45; Fri, 2 Feb 2024 13:01:14 +0000 (UTC) Received: from [192.168.37.1] (ovpn-0-9.rdu2.redhat.com [10.22.0.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A78D71C060B1; Fri, 2 Feb 2024 13:01:13 +0000 (UTC) From: Benjamin Coddington To: Olga Kornievskaia Cc: trond.myklebust@hammerspace.com, anna.schumaker@netapp.com, linux-nfs@vger.kernel.org Subject: Re: [PATCH 1/1] NFSv4.1: add tracepoint to trunked nfs4_exchange_id calls Date: Fri, 02 Feb 2024 08:01:12 -0500 Message-ID: <1DBC4AE1-E253-454F-9E7E-12DFBA14EBA6@redhat.com> In-Reply-To: <20240126190333.13528-1-olga.kornievskaia@gmail.com> References: <20240126190333.13528-1-olga.kornievskaia@gmail.com> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 On 26 Jan 2024, at 14:03, Olga Kornievskaia wrote: > From: Olga Kornievskaia > > Add a tracepoint to track when the client sends EXCHANGE_ID to test > a new transport for session trunking. > > Signed-off-by: Olga Kornievskaia > --- > fs/nfs/nfs4proc.c | 3 +++ > fs/nfs/nfs4trace.h | 30 ++++++++++++++++++++++++++++++ > 2 files changed, 33 insertions(+) > > diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c > index 23819a756508..cdda7971c945 100644 > --- a/fs/nfs/nfs4proc.c > +++ b/fs/nfs/nfs4proc.c > @@ -8974,6 +8974,9 @@ void nfs4_test_session_trunk(struct rpc_clnt *cln= t, struct rpc_xprt *xprt, > status =3D nfs4_detect_session_trunking(adata->clp, > task->tk_msg.rpc_resp, xprt); > > + trace_nfs4_trunked_exchange_id(adata->clp, > + xprt->address_strings[RPC_DISPLAY_ADDR], status); > + Any worry about the ambiguity of whether "status" comes from tk_status or= from nfs4_detect_session_trunking() here? The latter can return -EINVAL which isn't in show_nfs4_status(). Otherwise, looks good to me. Reviewed-by: Benjamin Coddington Ben