Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp647580rdg; Thu, 12 Oct 2023 17:23:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHiI86AJ8mqJQ5RbRpQ2EKlBvlqRNSjL4SEBlCom7jcqxCFFjrxBgUegsqZMpAKZJX06E13 X-Received: by 2002:a05:6358:18:b0:164:a5c0:46ac with SMTP id 24-20020a056358001800b00164a5c046acmr10449998rww.21.1697156636711; Thu, 12 Oct 2023 17:23:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697156636; cv=pass; d=google.com; s=arc-20160816; b=tniXZTkfnbjRGIodb6iLC8QPf2PuXM5Kpkz/ybSK+dvQiQo4kSBrLVGYnwkZvdFji5 GVVkNsOkmzoOOj6g+zbvkntqunr58BeyRQnwzzEpLiYNoLQ/GbZSx76PgQVdlLCHYNR9 C+a5e0IF6G43IEwTEMkLjY2HDxBPxu/LN/P8SHorMxWPepyc+2gihg2B9crUXJd1F+O2 fKh53+AUIbJkgWdyEg3KJIPVaV9bGAzdLk9Z5Gn4eKCmt90cwEFljqRdc0C0Z6AXg8pR aIykp3twNgixEIiO46YBSc93G07zE+E7x6+Oad2DNxFJAndS35KHB9sBi99vJGiC7ZJ2 ghdw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id; bh=tS0cv5gb1MJ2b54oclGWQaautNSCuGBqoWIxVNl8rNY=; fh=x/mqsOMg9nS7FDng7wv/ki/SU59zLsujQMq/RXifAuw=; b=vqfc17NsGWXJhS+IedjjtMZlg6prN/NtdEL67+TxagMLoEP3Mg24qCTweLL+/srsg8 AcWszLq+i/496VrSOPlVVLKqyKep4zf1XrM+n9Lm4ZZ4uKiNchgRophnpVA37dSlrpJp e5+Yh8TmWvAzddxk8t+kSvPCaybyljxepbI5f6EBbQ5mfmlV7q1ouwZGc/XpTiS1uCAS 3xeBhNnsbD/9pzXW0gsuIp+ucjxoPyb0qjpAtKhE5cC5B6KHztEMIeoU8zV1Wp+qJ52u B1TElHUyZJjvbJ8CzJB+5pYeaI2D+wej1er4ZXKOahaJ+a+mtX7JzTnuli1UouHDUEE8 lyEQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=talpey.com dkim=pass dkdomain=talpey.com dmarc=pass fromdomain=talpey.com); spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id j6-20020a056a00174600b0068e3950c705si16361779pfc.24.2023.10.12.17.23.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 17:23:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=talpey.com dkim=pass dkdomain=talpey.com dmarc=pass fromdomain=talpey.com); spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 106BF8258FCA; Thu, 12 Oct 2023 17:23:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234205AbjJMAXl (ORCPT + 99 others); Thu, 12 Oct 2023 20:23:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229840AbjJMAXl (ORCPT ); Thu, 12 Oct 2023 20:23:41 -0400 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2058.outbound.protection.outlook.com [40.107.244.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69005B7; Thu, 12 Oct 2023 17:23:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OwwU7MFYN105X6zkuJRMW3l74FH86Dz0PCrJnqLXvH10Y+QQr/BA7Sgme+EtDXbZFy77awbwHhn0jhST8RjNbiXpRgxJJBCM2KGAF8Fc7SVtQ6jy4BG5egxYNrEm7bcXfybQTZWMtPviUWJcqjdf1aHuX46ut333906GOo5KMA5wTkGLaLv80o1F7XDSUQLe8zi2AxyVKouyENBkBCg794Fe9ncCadNnlhW9eFSysjUzwUCJ+GTeo3IkmQySWbZH4cKc4iwmHX1UOzArpDKU8H5+lkFthqW10ojvYe40WoFj29Dk+NUNP9ULqfdNCO49nfowzO0+HrPQRkjqKwnwIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tS0cv5gb1MJ2b54oclGWQaautNSCuGBqoWIxVNl8rNY=; b=bebYS8YLpG2peSwIOH00shFQi+EURDZWV8rleZnSJ1XMR+pRR7JqwsIRaqKjbNxOPnfVAyitWT2H8GhDSiCwyXjo50hVkOcwEJehhrwezRHHQrIx1ob5JiLQvcfthY3ZShI3ehjeRZo6LilSteMLRM0OJmMWIk6tNNPQfX/eNGelT8ThCXL5oi015ruB3HCUFGCr87j6+TNewaHU4xR5r437twOxxPJaiDHggQxAXG+i+aPJk0S3jjg/A1cAsTOSidQqvxKkgo8arMNR8kkfprlHq24kaJiexH+OlJt9QlNhqxWXQECwFZvuPNpzLXhdgzrgvs54QkyN2y8lmekgvA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=talpey.com; dmarc=pass action=none header.from=talpey.com; dkim=pass header.d=talpey.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=talpey.com; Received: from SN6PR01MB4445.prod.exchangelabs.com (2603:10b6:805:e2::33) by SA1PR01MB7325.prod.exchangelabs.com (2603:10b6:806:1f4::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.44; Fri, 13 Oct 2023 00:23:34 +0000 Received: from SN6PR01MB4445.prod.exchangelabs.com ([fe80::28cd:b4e1:d64b:7160]) by SN6PR01MB4445.prod.exchangelabs.com ([fe80::28cd:b4e1:d64b:7160%4]) with mapi id 15.20.6863.040; Fri, 13 Oct 2023 00:23:33 +0000 Message-ID: Date: Thu, 12 Oct 2023 20:23:29 -0400 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1] svcrdma: Drop connection after an RDMA Read error Content-Language: en-US To: Chuck Lever , linux-nfs@vger.kernel.org Cc: stable@vger.kernel.org, Chuck Lever References: <169695862158.5083.6004887085023503434.stgit@oracle-102.nfsv4bat.org> From: Tom Talpey In-Reply-To: <169695862158.5083.6004887085023503434.stgit@oracle-102.nfsv4bat.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BL0PR0102CA0062.prod.exchangelabs.com (2603:10b6:208:25::39) To SN6PR01MB4445.prod.exchangelabs.com (2603:10b6:805:e2::33) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR01MB4445:EE_|SA1PR01MB7325:EE_ X-MS-Office365-Filtering-Correlation-Id: 3e81196a-62ba-4142-98c0-08dbcb82a238 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sEeu2BaRoglkufk6QLnOAvd5OOvkwK2kbJqI6gbfwJSgORxwo2jdTGh2MP1OT/d4J0KCc6tR9uIdERN74S7s+KG9IvQ5M/wSRaNxHn2s8PBX147sLrsMgmsFipsZfrTe0+wfBMKR3CCReBDSxZTQshFam0DvaudFjTKXvm7/MgFtRgVkJty9OsAWsEBDWJrKlpisenmxXxD5QqeH2yPUFF949WeZIPNk54nwCi5iPPPrFiqX9Xq93BkpmitPP8hxwDKYZdyf2dogrr3soAZuOxfOJMdsrTH35yFUcdPjjgPZPjQd8zZbm/K9Fh7W5AzhWWXB0aP/XYE8DQM22a2rXnaHIOX/jszn/zovmlQ/ZdSFWV6Q8eBjHFjJu2n7fFGZgWBcf515m+lPcCKEt66EOaMW65MXtqQ9wohzYwztMmouwfCWYFVYHtqJtQyHdi14G7riSb9r9POej2pbUUjrZb5GnBt1/b8LUhP5+90KhGMYbEk6LiqguS5H1vKHUVyVtAFpS1Hjjpj7lB7F9WnizRP66bAZTXhgvxJW8eMSZh5As2oG933PlzdNb9runNaFu+nbOgrA86kO2zbgdeW4JmyjLGtvCwAGSMZcCSCoBLc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR01MB4445.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(39830400003)(366004)(136003)(346002)(396003)(230922051799003)(64100799003)(451199024)(1800799009)(186009)(6512007)(26005)(316002)(8676002)(53546011)(6506007)(83380400001)(31696002)(86362001)(2906002)(2616005)(31686004)(478600001)(6486002)(38100700002)(5660300002)(36756003)(8936002)(41300700001)(4326008)(6666004)(66476007)(66556008)(66946007)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NG1MOFhGUWFGVWV3ZGJwVmRDbXdFQ3VPb2pVVkNseUFaN2o2RTQrRUNpR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NFRnT3lvOWk0UUEwRkNnWHdnbkVUbWdQZDNWOEludDJzemFRUXZud2Jl?= =?utf-8?B?Ly8vRk0ycDFoVkhwTVlaMVBjdENGZ0NzUXVVS2ZGZzFIWXNiTkZNQ0V6dWM4?= =?utf-8?B?bTNuUkpROFhJcFJtNm9JbC9Ga3RKQzBmejZhWnAvRkpVSnROREJVQlJWMU5j?= =?utf-8?B?bVQrL296Qk9lRmJKc2c1aCtGMUQ1YUFGK1ByL3dDNFg1VWRyWHppUWs0T1kv?= =?utf-8?B?ZzA5QXQ4V1g5ZFAvNDgrUDcyQndIWThGN3VkYmNGNXR5MVdnREV5bmZGcWI4?= =?utf-8?Q?hXvk4d0yxYHX/6oCWODsGX9yx?= X-OriginatorOrg: talpey.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3e81196a-62ba-4142-98c0-08dbcb82a238 X-MS-Exchange-CrossTenant-AuthSource: SN6PR01MB4445.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2023 00:23:33.3027 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2b2dcae7-2555-4add-bc80-48756da031d5 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: x/kS/2z9owFkSlKlWeiR0x/Z/mlt2NIoE+RyXtf6bKcYlApVMA5cOQR3WaHmEdSl X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR01MB7325 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 12 Oct 2023 17:23:54 -0700 (PDT) On 10/10/2023 1:23 PM, Chuck Lever wrote: > From: Chuck Lever > > When an RPC Call message cannot be pulled from the client, that > is a message loss, by definition. Close the connection to trigger > the client to resend. This looks correct, but it seems there are actually two changes here, it's initiating the close but it's also unconditionally returning -ENOTCONN. Other similar code paths do this so it's ok but the altered return value is a bit mysterious. Reviewed-by: Tom Talpey > > Cc: > Signed-off-by: Chuck Lever > --- > net/sunrpc/xprtrdma/svc_rdma_recvfrom.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c b/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c > index 85c8bcaebb80..3b05f90a3e50 100644 > --- a/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c > +++ b/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c > @@ -852,7 +852,8 @@ int svc_rdma_recvfrom(struct svc_rqst *rqstp) > if (ret == -EINVAL) > svc_rdma_send_error(rdma_xprt, ctxt, ret); > svc_rdma_recv_ctxt_put(rdma_xprt, ctxt); > - return ret; > + svc_xprt_deferred_close(xprt); > + return -ENOTCONN; > > out_backchannel: > svc_rdma_handle_bc_reply(rqstp, ctxt); > > >