From owner-freebsd-net@freebsd.org Fri Mar 19 21:25:37 2021 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E8BE65AD1A4 for ; Fri, 19 Mar 2021 21:25:37 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-TO1-obe.outbound.protection.outlook.com (mail-eopbgr670059.outbound.protection.outlook.com [40.107.67.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F2H4K57JZz3wPH; Fri, 19 Mar 2021 21:25:37 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EkPm9lBUbCPEsnde4/l0JsypIbwPgU4zdE2upeHFEXPqFZe/fUeuy5RocZl1dpxQZnDpgrqG6uf/x5FC5kUAiCEPaqsOjkjqkiEfGpb7luVbclY0cUeMX9EVzpaSNYSc4C+nY092XA2Y3iyqEzEF09Y7Rak7M2CfBQagCBK1xHB9ClF0SDUNHriKtPzDfkXQu/vKDAQDFcVTULYP4oAuSzvPwsCwFPwSHy7JuahmVLAdGnSDF1zi2ycRNmmCRYlTgmC5ICHau6fYi9XTBtdfzNED/fiCsAfvNGq8QjWSNoYUEmJtxaqXZgcoJ7AO75SbavdF3whs8LSoT0s/TWWC2A== 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-SenderADCheck; bh=V1azCSMSs1Y0vAAeywVsdSxqpUaIDPNa/GPjdk0dG5U=; b=COrnsCPmSMXQac2FiUmNYIX7fXN8p5fq8LwHXiy33s5+FVvLNorcG+rpGUKPr551OTrqgnRDrkSx8Tsky24sOaavB6SPjEW1PvuGbFHjdKlQm/ID9oA/95o244y5DzLT7+8gmc8+hEize6recWMWNGnyeLlDZZlfIW17VsDkaQb0Hy47/e9dvyILX4gndYn+NmbD3clforsgC9XKoRJUZJbNS4ytUyqlsnriyDILLhju3Fn9Bm1TE6atP6RBZsL0f2yE1houyiCjTa778jJHjmTyn67B7F3lLq2pAVzn9koIrpc56JygvL/UEVUp4cHOSAku2uyha619W2F6NoE6nw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=uoguelph.ca; dmarc=pass action=none header.from=uoguelph.ca; dkim=pass header.d=uoguelph.ca; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uoguelph.ca; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V1azCSMSs1Y0vAAeywVsdSxqpUaIDPNa/GPjdk0dG5U=; b=LmXVTWY0p7ul+QWYo0f4AZ4irWT+pwYBYELEBoe+LMIXR0poYes5TTUe5aG+1CmdShR3JeXOTUNjI4m+SyHE4xdWqsrVQvDVjGCp9XpsclPmr9YiJU9PQ+RlPFUZvA0cEgh/yO3Lwzx3aGJGB/vID6H0D939C3sjM46/cj6Wy/wCjXD4suPDy5QAokYR7N37rE9WEWQ0/WEW5I46vkmNZKyaTWdnLsqFQvWzxOHvwn65zWAi48ki78hLjlDKfk4lhFnDnpe5pOsEfWVi6iwMobm5Talyazta10LZNVI0NlVnQEwh9quY9RQQ6+DdxSJO2dvVlREC/Qs/eo01lzGH7A== Received: from YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:19::29) by YQXPR01MB4309.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:7::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3933.32; Fri, 19 Mar 2021 21:25:36 +0000 Received: from YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM ([fe80::6073:6fc0:5ddf:dc8a]) by YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM ([fe80::6073:6fc0:5ddf:dc8a%7]) with mapi id 15.20.3933.033; Fri, 19 Mar 2021 21:25:36 +0000 From: Rick Macklem To: "Scheffenegger, Richard" , "tuexen@freebsd.org" CC: "freebsd-net@freebsd.org" , Alexander Motin Subject: Re: NFS Mount Hangs Thread-Topic: NFS Mount Hangs Thread-Index: AQHXG1G2D7AHBwtmAkS1jBAqNNo2I6qIqQ+SgAEIlICAAAOAgIAAhBk7gAAEF4CAATUdPYAADKuAgAAgQ4CAAAO8gIAAMQoG Date: Fri, 19 Mar 2021 21:25:35 +0000 Message-ID: References: <3750001D-3F1C-4D9A-A9D9-98BCA6CA65A4@tildenparkcapital.com> <33693DE3-7FF8-4FAB-9A75-75576B88A566@tildenparkcapital.com> <2890D243-AF46-43A4-A1AD-CB0C3481511D@lurchi.franken.de> <9EE3DFAC-72B0-4256-B57C-DE6AA811413C@freebsd.org> <03DE00F1-B60D-49AE-AC53-C83BA9F0F5C7@freebsd.org>, In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9d089dd4-1bbd-4c1f-c559-08d8eb1d892f x-ms-traffictypediagnostic: YQXPR01MB4309: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: adXktSQH7dw4Y463Z0e6B8ldb7wQHFU3Qugy4e6e1G3p8vK8F8pFSdBsA4RNUPFz3HzKNb/cpiuyUqqkDE7hXZJIPIWvKEW31McmPp25j7x5iRJeqjDmNh+xYzcP2Je9xhzdOM/JYKZ4O4CqrX91WXZLLMzqQbgj1+/JZ5AQoBXboi744Hh7H5F3oyAkPR8N2yRCdObQbedkWxtjyuoZB8oWY++nH+aUuiCkUuiryGpZYfLDalS3usEdPsnt2OB9RgXmYo9BzgIIXWafNYOlyZCaAXQJwQ3fV06EumMjtB/gzjbjYEX7HBJ8CfH3/T/32seM9/MNISYYa4ahZopHO5W6Zwkzev8okb+v5Ip8IJieA6qFr2SQ7tQ349T59SahzJ5/G9TibLymJrYXMVLfuL6ELv9mUWPAXr9ZNozanxWJNA5twqOPB0HG23nb5Wb/jSKBvJ2P8KSyL50zUWE0yaOgAdCdFbh3gx8Zv9ID9R68C1LPAZ0HMKK5UuJL+/rVVP2L5/l8veK3Dy1Rg8tJWabqF4yiWuGl09UhA2DEsZt8Xa6Kbo2rGLivprB1s+9rsoNMtTYGYkEzBfiN14L9Mb92GHyixI+XWPBxeTUKSwtor/pWHE8J+VLnOM4LzBx3xVA8hNt8aNMpdnPVDzQdDrjXJiLioFxFhhH6MF0TTIs= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(136003)(376002)(366004)(39860400002)(396003)(346002)(71200400001)(186003)(66946007)(7116003)(76116006)(66476007)(64756008)(52536014)(66446008)(33656002)(5660300002)(4744005)(86362001)(91956017)(66556008)(3480700007)(9686003)(478600001)(38100700001)(4326008)(6506007)(83380400001)(8676002)(110136005)(55016002)(54906003)(8936002)(316002)(7696005)(2906002)(786003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?iso-8859-1?Q?6rxxLuFP7C0Lc1IxWQ+unR3YmIXypDgVyRqnkH2TBzqkqyfrtdz1rnstlM?= =?iso-8859-1?Q?3vxH3Nd4hzw3ix4i//bz9y3tdV+FagPXfunW/6WA0SzCblW0YyKKZCuSuP?= =?iso-8859-1?Q?JQEVkUarRDLYyTSb8bzao3y/yG5fnOLa//rcZVsZb/d9vLm7EWuJX3Uh99?= =?iso-8859-1?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JMgQ1TlGBm4tupdnHlMPLd?= =?iso-8859-1?Q?OImDTL7sdPbc7n4cZXkM90U2DccIPh7xNG2DVV++Jb6tA5DbhP7Q2QS/YR?= =?iso-8859-1?Q?vuoHTJ+ECjZ7o4wktRqG9ohDLrszAIFdrDq6QD4vn7RyoY5WTiOe0sLO+o?= =?iso-8859-1?Q?XnOk0b1Ug1t08iuH5kiv17dxhMEScw8Q8U1G1YcMkIEfJlkgOhhrhpNgHu?= =?iso-8859-1?Q?dGn3AdEcCKET+tIN3fF+08WX3CtRBqntPPnI4EgJH+xmRYk82Ln/zPu/DV?= =?iso-8859-1?Q?rJFXytifpuuyeEoGpN57IlYSLekfBXLpgMSAKh98NJmeK3xakflKBttbRo?= =?iso-8859-1?Q?gO8Ei3qUxFE/Cqr29ABsYmreXdq+8XjIP6oK7bUBqX9kNbYATLUEM40n/Q?= =?iso-8859-1?Q?fv0e45SOXi59oEI5?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 9d089dd4-1bbd-4c1f-c559-08d8eb1d892f X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2021 21:25:35.9964 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 6VYU6765gw7vqX7fu5lakg0sDVu1666vyXBXpThQ/6YbqniLiiHgXb34Tj5WG+8xXBGyQOvHTDWxnOr+8HvXPg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQXPR01MB4309 X-Rspamd-Queue-Id: 4F2H4K57JZz3wPH X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2021 21:25:38 -0000 Scheffenegger, Richard wrote:=0A= >Sorry, I though this was a problem on stable/13.=0A= >=0A= >This is only in HEAD, stable/13 and 13.0 - never MFC'd to stable/12 or bac= kported to >12.1=0A= >=0A= >> I did some reshuffling of socket-upcalls recently in the TCP stack, to p= revent some race conditions with our $work in-kernel NFS server implementat= ion.=0A= The FreeBSD krpc/nfs definitely uses upcalls. On the server side the upcall= just=0A= "activates" a thread to service the socket (soreceive() etc).=0A= The client side upcall does quite a bit more, including soreceive().=0A= Timing shouldn't be a problem, so long as upcalls happen when there is data= =0A= to be received or the socket has been closed at the other end.=0A= I test with pretty current sources and haven't seen issues.=0A= If I do see problems, I'll be sure to let you know.;-)=0A= =0A= rick=0A= =0A= =0A= Are these changes in 12.1p5? This is the OS version used by the reporter of= the bug.=0A= =0A= Best regards=0A= Michael=0A= =0A=