Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2717798imi; Mon, 25 Jul 2022 06:34:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tBZP9bqA1AeNYmu+Bb4rPSc1rrEJbBeSm7NLcblLptoU1dpprKhkCLR0uCylG+NCfDORcL X-Received: by 2002:a05:6870:1790:b0:10c:cc1a:5824 with SMTP id r16-20020a056870179000b0010ccc1a5824mr6540381oae.295.1658756062991; Mon, 25 Jul 2022 06:34:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658756062; cv=none; d=google.com; s=arc-20160816; b=U60V8FrBzx61lK+xZDy7+T6HSdLlS3ChL5IImJ1Cji28LWmEfbEy38H/TBJKC3TFlc QxD7aebfggK05rpihJMxfZ2Q5ghK/moXoMfGeu+UZHMTdA1mClcMdwUEKSvT2/qnOfg5 1dOqQURDtElc/sIAgk9Ovx8UgP9jCBBpzq0qJhCTGeak5qhJTQU5z1qD4l4T08rMDdpO 5PBY9xOpN/jqjLLQQKrYW3Zv85H12pSjipkncXILdj0LUxhGHT49gG0KjSlPcgcnB4Do TblymR0mSjwKAmlV25vOP+7/vhGl7Oc0thjNl2POGBQEi8UYsENI4S+4FBZDhYoG1i/Q 4k4A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mq8rVpsA9nDNnsFZV5XL3YFvIErJctRzBpIaaJJkMPw=; b=CvgQgBH4V4Pl6C0FEh/3A8m53vwFnppQ/tq41S/o0XtDNGjwZk3jbHMRZpDIsp4y8t GWybv5SC9VaY4iw3xJ77j8jWJLNb1j1bBc3HnZfbeWL+2q374i7auGQ4o5KDQDOqBuaD Eb8dh8ZAsAGCJoWRMUKh+84sgM4+IbpWYi/WLZomegqGRW5APZTCG/69R/W+UNhmnxh8 2lzLc9XgHw2DfFdxX3Dfp+Jk6CsWhazeWzUy1qS/tRbvkcnB6as96gKSuzTqqVWcbJqe ECWnDcYjxIjs03ZoaWNDTecXk8DWhbIP67pDP1lFIOYssroz57Hk6M+1T1HRaCUEwV29 MIbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=S7uOJ4nQ; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020a056830310800b0061c4a5f25e4si11820026ots.123.2022.07.25.06.34.07; Mon, 25 Jul 2022 06:34:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=S7uOJ4nQ; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235381AbiGYNcm (ORCPT + 99 others); Mon, 25 Jul 2022 09:32:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234946AbiGYNck (ORCPT ); Mon, 25 Jul 2022 09:32:40 -0400 Received: from mail-vk1-xa29.google.com (mail-vk1-xa29.google.com [IPv6:2607:f8b0:4864:20::a29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54118DE96 for ; Mon, 25 Jul 2022 06:32:38 -0700 (PDT) Received: by mail-vk1-xa29.google.com with SMTP id a7so3733594vkl.0 for ; Mon, 25 Jul 2022 06:32:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mq8rVpsA9nDNnsFZV5XL3YFvIErJctRzBpIaaJJkMPw=; b=S7uOJ4nQt/z0rGScaEoG6C7rKnDmRNww1sfiHvqub7g4FmTvUcAo6hzr4xjLkM490g ovbZWgpEXKGL+M4qQEI+lENxkcmAiG5ubR0CPKzzyR4LrvVOG1hYt+gjYwKaH0BuhhdX 4xV8sFOBUduNKJAv96AenyKtyuwpxA5++eZlgc2sZf7WO0hClTbM1/3XLAh4gwYW8tXQ jirAMr+4zFDKD5s2h7ErQ3IlWa/lFM0QTWIiylVbRZWJ6Uqj3mlcRidxbPGKC5G7Mkbb LAwaFeo+NiXDJq8CEEt3/J4cUAm3c+3fZmREp8JYiXxTHmsjbf8DFjS7kc7EBwVyZWYK 0XNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mq8rVpsA9nDNnsFZV5XL3YFvIErJctRzBpIaaJJkMPw=; b=1MpZ+CSzc7I+W0cqm+VIn6GHjwMaYmdy4bZfpIr+8j4VSXs28WUxVpGmOLhG5yLvmI KegBQUna8h/ugidNA9zkipcNkbRy0PnFHpcJmKuwtqawDNvHNNdratOM81AZDMvS3rrO lDFsctyKsREAS/HVXfDYKzyecCK35q+1FMJeZCgmUBHae7lYWVVihSDlUFtM/xPDI7Wp OqzFDQuZYcIf+kPT5LsCWkzwnlUf+eAua6/5IDR+PhYvKhbTLA9oyPVHsxH32tZjL7Av vYMkK8dYk/87Q6HkHMYzpyVvZ3WSS0bBM+eAk37HHrbdmrWfW7dIcRoou3b+LLtK6j1f jVHw== X-Gm-Message-State: AJIora9UxO6vIGnB+VbAMxqsoEpoeCghViguaStL9r2SIJCYu56JZ81M yvDZcx826hjVFOzgcxzpYFtrFl/NzgE= X-Received: by 2002:a1f:34d0:0:b0:375:c0d6:79ff with SMTP id b199-20020a1f34d0000000b00375c0d679ffmr3311856vka.37.1658755957339; Mon, 25 Jul 2022 06:32:37 -0700 (PDT) Received: from localhost.localdomain (071-047-011-047.res.spectrum.com. [71.47.11.47]) by smtp.gmail.com with ESMTPSA id a6-20020ab06306000000b00383aeb53100sm2128826uap.16.2022.07.25.06.32.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jul 2022 06:32:36 -0700 (PDT) From: Olga Kornievskaia To: trond.myklebust@hammerspace.com, anna.schumaker@netapp.com Cc: linux-nfs@vger.kernel.org Subject: [PATCH v3 03/11] NFSv4.1 offline trunkable transports on DESTROY_SESSION Date: Mon, 25 Jul 2022 09:32:23 -0400 Message-Id: <20220725133231.4279-4-olga.kornievskaia@gmail.com> X-Mailer: git-send-email 2.30.1 (Apple Git-130) In-Reply-To: <20220725133231.4279-1-olga.kornievskaia@gmail.com> References: <20220725133231.4279-1-olga.kornievskaia@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org When session is destroy, some of the transports might no longer be valid trunks for the new session. Offline existing transports. Signed-off-by: Olga Kornievskaia --- fs/nfs/nfs4proc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 4e0dcc19ca71..3f4e84e9646e 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -9291,6 +9291,7 @@ int nfs4_proc_destroy_session(struct nfs4_session *session, if (status) dprintk("NFS: Got error %d from the server on DESTROY_SESSION. " "Session has been destroyed regardless...\n", status); + rpc_clnt_manage_trunked_xprts(session->clp->cl_rpcclient); return status; } -- 2.27.0