Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1008634rdb; Fri, 2 Feb 2024 10:26:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFkk6/2MomuIJwjw+vtz0vgA05oBZCWYsagan8XZhcEuW5fgy8k318wMnSINqZHe1l+cZOQ X-Received: by 2002:a17:902:868d:b0:1d7:2e86:fb2a with SMTP id g13-20020a170902868d00b001d72e86fb2amr7771275plo.65.1706898383312; Fri, 02 Feb 2024 10:26:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706898383; cv=pass; d=google.com; s=arc-20160816; b=0S5UALpSTV8ykoaF7LbWh4FxPMwzvkMUkjRE3Uz42edp0P7JvwY7MqxNOChStPLAMD gAJWAvBSHdXZR2GuuC3jV4qexa1FuiN1rIs0op5jqZG5U7lIiJDqErDbYQmqkLEhAOg0 cJ7sWbB5xKguEytu4/XfJiJQBWME0lO2lNzt6EvGXDw0eTputWc7Re5/EF2gTha8Jshe vqC7rpYrTYXgHGyTXNV5CX9IvGIZLKtmmjBR6Fg3rIqDlPxxt7hU0qcc7SmJN5qB1hV+ VGmuAoEcAizHNNKQDEilR09d4I2kMS2xEnTtAP1/ln2bJj3pA0Jcsy0Q1zlbIwHXUtAR RuAg== 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=feVeQ+BthqvBVRexr7Ptzw7f7sClj9kkQO54/I4aDn0=; fh=3j1iFZrQdrxcHt/ouY8VS6cOK1Z4F5PQ18d5IWVC2bY=; b=pLC6n7AmYVnIn3s7IuPmLyo/IWlGOtwRrspHocqQI+hZ1zHfkYgGdhbADDvuEMOq8i weL71O/hbpsGuW2jukAkvof7FFNlPg9ckv1rIgWf1W2Sa7WgY3t/vvPksotZiKfTbGWt BPBIhwML75r2jRJu+wwp4NnG6gHY5dAgeAa7Q2DRVCSId0n7LG83A/gUTArNVam3F8rZ jYeXFQI8S3Bv1JC9UX2CBRAI4KWRsK5vDV0kt01io6zQt8NC2qUmPbBygCw7xAZWm8Pg fGljoh8SP15azL/ePxVHTGSsoOJ7gXYBYB/8vZcH+fEKyeI0+b1MZ+15/nvY4qzD6k00 zhYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Eq0Ojiqh; 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-1720-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1720-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; AJvYcCVgSLZIItYz5xsMMquZY0dt5Vi4Maah6C2GwLoi6SJLHO9gNfa9SY2wMARqR3MjsGbdxOTcQsBHmz/j6dFcYlCwmTlJNfQXcy7m5GgK/g== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k15-20020a170902c40f00b001d8ef863df3si2048437plk.151.2024.02.02.10.26.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 10:26:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-1720-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Eq0Ojiqh; 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-1720-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1720-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D9237292849 for ; Fri, 2 Feb 2024 18:26:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1665E1509AC; Fri, 2 Feb 2024 18:24:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Eq0Ojiqh" 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 1CB3D14D450 for ; Fri, 2 Feb 2024 18:24:23 +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=1706898266; cv=none; b=PI0PBa6zyIqUX7g95NQfxPEdbdjwUzV1RmY20L5JvlzLl/9AVEob+1OzGAIlctJB/GqRSzseFQWVe7C7prDSp+PyEkXSgX/0EvfJoXijvNRwKrq81O0XgRtB8yCggOy6xOsZx2qYcPietTwqlW9TyXsfMXFgxmSpXiU2eESYTlQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706898266; c=relaxed/simple; bh=KQn8Tn76EL2MshSgWcIK+OTuxDm0RXThefFkvj9O0io=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GFdWHH/+/o6fGBf/e3q6duomkEIHjRHJKugMX23QE9+Njzfz0pEuuFnNuinhwA2C+9bC/gBV8kSXccRvraBwcqu+Q1EskD7fQBys3CO8Ig4FMg74Y/KwXllMtEa87tbP3ZZKUyt8ZGXYM6tnS6L69atGop8uNookA2IQZv5nfz8= 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=Eq0Ojiqh; 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=1706898263; 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=feVeQ+BthqvBVRexr7Ptzw7f7sClj9kkQO54/I4aDn0=; b=Eq0OjiqhVzeOZFMO9KmikUlVrwq3r2e0yWYMor7Ni0EYIzivmGs0is9KF/SLb80dtx0pjZ vWyguDI8gtxB4ObAkUywINq8TvjtmSTZJUxMZ9H4vXNHtG+bp4otCKZjOYopha1YF9aYjL Y2fLaq0KWmTrcf4CIBK/Z+bHQcwUCCU= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-131-7DXDT3HJOfihVi9hEMM8bA-1; Fri, 02 Feb 2024 13:24:17 -0500 X-MC-Unique: 7DXDT3HJOfihVi9hEMM8bA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (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 7FCC11C05AB5; Fri, 2 Feb 2024 18:24:17 +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 A6EB91121306; Fri, 2 Feb 2024 18:24:16 +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 13:24:15 -0500 Message-ID: In-Reply-To: References: <20240126190333.13528-1-olga.kornievskaia@gmail.com> <1DBC4AE1-E253-454F-9E7E-12DFBA14EBA6@redhat.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; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 On 2 Feb 2024, at 12:45, Olga Kornievskaia wrote: > On Fri, Feb 2, 2024 at 12:05=E2=80=AFPM Olga Kornievskaia < > olga.kornievskaia@gmail.com> wrote: > >> >> >> On Fri, Feb 2, 2024 at 11:56=E2=80=AFAM Benjamin Coddington >> wrote: >> >>> On 2 Feb 2024, at 11:47, Olga Kornievskaia wrote: >>> >>>> On Fri, Feb 2, 2024 at 10:36=E2=80=AFAM Benjamin Coddington < >>> bcodding@redhat.com> >>>> wrote: >>>> >>>>> On 2 Feb 2024, at 9:42, Olga Kornievskaia wrote: >>>>> >>>>>> On Fri, Feb 2, 2024 at 8:01=E2=80=AFAM Benjamin Coddington < >>> bcodding@redhat.com> >>>>> wrote: >>>>>>> >>>>>>> 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 t= est >>>>>>>> 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_cl= nt >>>>> *clnt, 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(). >>>>>> >>>>>> Good catch, I didn't realize there wasn't an EINVAL mapping. I was= >>>>>> focusing on capturing the fact that exchangeid was happening and i= p >>>>>> info of the trunking connection that I didn't pay attention to the= >>>>>> status. I'll send a v2 with EINVAL added to show_nfs4_status. >>>>> >>>>> If you're only interested in tk_status, you could just move the >>> tracepoint. >>>>> That would resolve the conditional branch that changes the source o= f >>>>> "status". >>>>> >>>> >>>> We are not interested in tk_status that can be gotten from the >>>> nfs4_xdr_status tracepoint. We are interested in the results of the >>>> trunking decision. >>> >>> Gotcha, ok, I understand now. Tucking into the conditional or moving= it >>> into >>> nfs4_detect_session_trunking() would make that clearer, but no big >>> objection >>> from me. >>> >>> If the task returns an error, this tracepoint will still be called wi= th >>> tk_status instead of any result from the trunking decision. >>> >> >> :) I'll send a v3. though I don't see my v2 posted but i did send it >> already. >> > > Well looks like I'm not longer able to submit patches because of someth= ing > new fancy policies. I have used the same gitemail from mac as v1 and no= w my > emails are rejected. I use Mac's git sendmail command. > > Ben, how do you submit to your patches, do you use Mac git's or submit > through something else? Thank you for the help. I use git send-email from linux and I relay through redhat.com's smtp servers, which are generally well-trusted. Your v2 made it to me and the archives: https://lore.kernel.org/linux-nfs/20240202145432.95487-1-olga.kornievskai= a@gmail.com/T/#u Ben