Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2257348pxj; Sun, 16 May 2021 20:18:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+u9QeYBzQwzqT9QjNN8XMGLxdPQDnAPYMBRFOQbk7XOAQmbQZm/Ds3+6y+pki6uN5uJxl X-Received: by 2002:a05:6638:21a:: with SMTP id e26mr1207068jaq.58.1621221481597; Sun, 16 May 2021 20:18:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1621221481; cv=pass; d=google.com; s=arc-20160816; b=lRYUV90bC5U1GUIrnmIQCfCfyuwPaMbSgxtrzGP8MDpg+YanRd++k4B1SlPxI3sKlA sHPkwhgnqMKhSTdmXAoTMHRLsRUGVODB1XNwltHgkkrDuQsuKxzWVda7HXgwIKhrBqNJ HSJNh+4wdpVn4QKUb5WL0HYGlUnZ72Su9mAVwp528R1YTrOzy+YmiUASvvyUgihVbP6p J/awh+fmPJKs30uAn7lzheldMjqz+iab8KdZByjUBlzb9O6LlPZExF6348t9TxrOpXJw Lm42TawfiCwvmaqbbTExPAFz8XX4qcklV7SUAgo2jq823wM1Js9X3HbsChTWP9HmwJms GF7Q== 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 :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:to:from:dkim-signature; bh=0GtJhBdJvNscqV6rN5303im41vXLbo0VWUfzfLIXoME=; b=ygE/6Drl+QqMXX9b+ucg7kuBfrhRDDJGLMXQMzpptGe1vIj1ToHHiDBnEuOexuEKxY Re/CTS/jh9PRaY/VQW5+Is1pv3w5avM0C5xlqfV57nOTJCqfh4noXO5gJAdU8JTtD6tB Qlt+zfyfeLIX5V5PAG+JTMSo+b/XIO0DBetPdkLEy8bLrUenga1H20vu4l9k/EmDFA2t apugqZkGxIs/Ivkog6cpTJq0f8XUdd4Tz9ws60fsFj9hSdTXZ2aQJl73P7lpjims0atX 88CcSt2CyalJ18AGXm67xPIglrCGN498Qtwij7UjRdziUssMcM6SagY0r/sG0UOl95PB Tbqw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vmware.com header.s=selector2 header.b=WXNmgSIt; arc=pass (i=1 spf=pass spfdomain=vmware.com dkim=pass dkdomain=vmware.com dmarc=pass fromdomain=vmware.com); spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h5si19279319iol.44.2021.05.16.20.17.37; Sun, 16 May 2021 20:18:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@vmware.com header.s=selector2 header.b=WXNmgSIt; arc=pass (i=1 spf=pass spfdomain=vmware.com dkim=pass dkdomain=vmware.com dmarc=pass fromdomain=vmware.com); spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232431AbhEQBiv (ORCPT + 99 others); Sun, 16 May 2021 21:38:51 -0400 Received: from mail-mw2nam08on2057.outbound.protection.outlook.com ([40.107.101.57]:64640 "EHLO NAM04-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229479AbhEQBiv (ORCPT ); Sun, 16 May 2021 21:38:51 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cL6TC0KLL+0ycFBhiDmg3sZWiwDstvl4Obkbs7LQRcbpUyZ7HYLCS8MJfNu6s/TrtrF2vGpUD8Neqott5n4/GPKj/oEjdSVK6lXx02ICVm8/BaA/K7qMcgK6thMAXCze9WwCAt6se0wxALHdepztpukgTOxAQ9yB7umlSqUw7pagi5zd/jzHHFemx3h+P+rZhEOD1wI/9s5jZxjnMd8ttB4sw5+v83Vh5SZJ3NP4OJd4bnH1/528v8PRBQAIoxWH5fz9a4mdte0sv15B7y+yLvLazf93Xo0sYJPXH70phFE4vxW69p3IuIaXmvX6SWMhi1sRQHorFteRxtAsT77tLA== 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=0GtJhBdJvNscqV6rN5303im41vXLbo0VWUfzfLIXoME=; b=TzQmPvWidj0VJKrBFOlhQ1tX2cJncPtNRy9dh6wrtdxjE85yCBstnpndVyJcv2g5vjRNrOAcY3X4wPEb9QKAsMmN0J58KUpgUHOsFJuNRD9cMVrlFuO7IgZhJkTmhfNkFChW05lkaWNRXDbztA4/u3IjCm+768OUrM5FxTthIsVvk/bV5vVUmWPfuPKtVV8kxXP34tIjW1z8sQkenJLnOjolJn8kLRsFEdDwDE6c2kG06jxzKkv7Bw9q1mLN2ExixyQq6LRgZxMNnHfR8EVucxPqmWkATGuijWTm0OrSqURm9qGFCnU5UKtEUaFArlWcyGq13tZNU9Y3t4NgZIlhJg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vmware.com; dmarc=pass action=none header.from=vmware.com; dkim=pass header.d=vmware.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vmware.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0GtJhBdJvNscqV6rN5303im41vXLbo0VWUfzfLIXoME=; b=WXNmgSItXpV5jypykxB46n5yNIz12PnFOUohEbeJoHKUY8T2WfjqjVY9WE4ufj5HY/uscdnMCUsicC9Ra1Z7aaOtSdlrQSLjj++l3zscVnerji0uahjKYfCrh0QuE6SrMq6zuGXlut94GsOm70Ykav4i3ff1mPdEgcT0E+w1YH8= Received: from CO1PR05MB8101.namprd05.prod.outlook.com (2603:10b6:303:fa::14) by MWHPR05MB3471.namprd05.prod.outlook.com (2603:10b6:301:41::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.24; Mon, 17 May 2021 01:37:33 +0000 Received: from CO1PR05MB8101.namprd05.prod.outlook.com ([fe80::6cbf:9cac:d7f7:d002]) by CO1PR05MB8101.namprd05.prod.outlook.com ([fe80::6cbf:9cac:d7f7:d002%7]) with mapi id 15.20.4150.017; Mon, 17 May 2021 01:37:33 +0000 From: Michael Wakabayashi To: "linux-nfs@vger.kernel.org" Subject: NFSv4: Mounting NFS server which is down, blocks all other NFS mounts on same machine Thread-Topic: NFSv4: Mounting NFS server which is down, blocks all other NFS mounts on same machine Thread-Index: AQHXSrzxNwU+/2izAUaNQrMQbCMgXA== Date: Mon, 17 May 2021 01:37:33 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=vmware.com; x-originating-ip: [67.161.44.194] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e176d82d-060b-4462-0688-08d918d457ed x-ms-traffictypediagnostic: MWHPR05MB3471: 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: J6lX6aOadF9WsyByPIzN74uESJ1cnCyPKAbTW8W1iEmSPDF/W/CP2oiW8GU8eZikWz78RLfut/HDEecZucZ7w0m4vEUrP3mIrQv+kW83wlqAVC4aOFNH+08MxFEIJwIW952uxyhaJzl22ZmkA7t+3NMekNyI8nfnQJvmoZgGlQW1EtRYk20WDb1azFtKmt4kdMzmVsz2qqgKGQqyLMUOL5DneIRhDYgwsjYzgttOJrKV4/4rbHbwxmOXpM/obH0nNNt16h+N6bOXbj84kpB+FDsABx2SGSGkV0dlzrtEjceQse9R5jnqEPkdiXRFcK9Sm3VeBa0LB4qnQfjlXN7Twp5EA+JSNMBdNh4WDUDpXkPc0Ys4cSZxu3B8gKkGLyVigMeFTgZGMWrmklVIuZ7rerPM5UTS4TPFlpSeKP2ermSVP9ojzClJ7I5uOGuSzyW/Y75KgutWoi+pqY9YQeU6MEL6p2gs9VffPnAwiMqOEJ43OcWHIrGUjkhKWxCMkLcvIItqnES7LW8re4MaZosYO52RW+PKOZu+E8hVhhKhDgbzdio6S2xkZmzJuu2P0QifmezDw5VTf9kWj7oVIbZyAdGUsW4FeOcizNuEtUcZ4cFWNFVWBBDMUJUL65DsPXtPntHS4scvvMpd6985yIsLV2JXRyAGGKD1C73Y5S3N3awjXQguTMsehbYyTCuYjmx4Hh5MQMh5JqBO6wDXERz+zw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR05MB8101.namprd05.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(376002)(366004)(346002)(136003)(396003)(39860400002)(6506007)(966005)(66446008)(52536014)(33656002)(7696005)(186003)(8676002)(91956017)(26005)(66556008)(83380400001)(71200400001)(5660300002)(38100700002)(9686003)(64756008)(66476007)(8936002)(2906002)(86362001)(478600001)(6916009)(66946007)(122000001)(76116006)(55016002)(316002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?iso-8859-1?Q?fttRJASrQlDsWB9ULj+YCHRNgncllG311McNgzyIB3imrufMJPutVlZ8Ng?= =?iso-8859-1?Q?4uVP4FhTdZqQQqzYhNascla0jpZIge+INhevkv1s2kqr3SZfmmN/+AkwCM?= =?iso-8859-1?Q?t215xlNRnV9uDvemwInfA5tSow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8859-1?Q?OLqPpVTXdPCO0CGX4K5FmFKCKfwYsZPnZIpjd9jB93V9kp3bjZIjh6ZS/q?= =?iso-8859-1?Q?+FBRK/fIlkhAFqQxFZCvjJPTzSvqV/3nKVYcatBsdgneeOO+EjbwHKgR4z?= =?iso-8859-1?Q?FyFbyPWaRD0Bl2oddlB46mI3zTgyLB+sF+a/GqeLu2+kNQgihm3hRFSpLM?= =?iso-8859-1?Q?dVGQEGO1vMHRq6YcE7WWkQUZHTJYD8Jr0vEUCx1luBCC6K5OVzMastdsXe?= =?iso-8859-1?Q?nG6V+xTdrJHNND493PVmWYVsb3UTw91xwSs04UqDJ83JNyDCG19Fm/Hg9G?= =?iso-8859-1?Q?HxT8bNoJOKOM7m3C95h5KB4qye5Y/08ClQFckIm6UCuySug=3D?= 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: vmware.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR05MB8101.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e176d82d-060b-4462-0688-08d918d457ed X-MS-Exchange-CrossTenant-originalarrivaltime: 17 May 2021 01:37:33.5447 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: pzWJB3/rEFq6KMcDIyymApbyIr8SAqoPikqopP2Bqca8tJgMTp6Z0zm7PBLm4dettH4fXNTfh+3ynLvF8T47/w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR05MB3471 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi,=0A= =0A= We're seeing what looks like an NFSv4 issue.=0A= =0A= Mounting an NFS server that is down (ping to this NFS server's IP address d= oes not respond) will block _all_ other NFS mount attempts even if the NFS = servers are available and working properly (these subsequent mounts hang).= =0A= =0A= If I kill the NFS mount process that's trying to mount the dead NFS server,= the NFS mounts that were blocked will immediately unblock and mount succes= sfully, which suggests the first mount command is blocking the other mount = commands.=0A= =0A= =0A= I verified this behavior using a newly built mount.nfs command from the rec= ent nfs-utils 2.5.3 package installed on a recent version of Ubuntu Cloud I= mage 21.04:=0A= * https://sourceforge.net/projects/nfs/files/nfs-utils/2.5.3/=0A= * https://cloud-images.ubuntu.com/releases/hirsute/release-20210513/ubuntu-= 21.04-server-cloudimg-amd64.ova=0A= =0A= =0A= The reason this looks like it is specific to NFSv4 is from the following ou= tput showing "vers=3D4.2":=0A= > $ strace /sbin/mount.nfs :/path /tmp/mnt=0A= > [ ... cut ... ]=0A= > mount(":/path", "/tmp/mnt", "nfs", 0, "vers=3D4.2= ,addr=3D,clien"...^C^Z=0A= =0A= Also, if I try the same mount.nfs commands but specifying NFSv3, the mount = to the dead NFS server hangs, but the mounts to the operational NFS servers= do not block and mount successfully; this bug doesn't happen when using NF= Sv3.=0A= =0A= =0A= We reported this issue under util-linux here:=0A= https://github.com/karelzak/util-linux/issues/1309=0A= [mounting nfs server which is down blocks all other nfs mounts on same mach= ine #1309]=0A= =0A= I also found an older bug on this mailing list that had similar symptoms (b= ut could not tell if it was the same problem or not):=0A= https://patchwork.kernel.org/project/linux-nfs/patch/87vaori26c.fsf@notaben= e.neil.brown.name/=0A= [[PATCH/RFC] NFSv4: don't let hanging mounts block other mounts]=0A= =0A= Thanks, Mike=