From nobody Mon Dec 27 17:20:04 2021 X-Original-To: fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4467B190FF4A for ; Mon, 27 Dec 2021 17:20:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JN4DQ0l9Yz3J8g for ; Mon, 27 Dec 2021 17:20:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EC95621E11 for ; Mon, 27 Dec 2021 17:20:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1BRHK5HF072319 for ; Mon, 27 Dec 2021 17:20:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BRHK58J072317 for fs@FreeBSD.org; Mon, 27 Dec 2021 17:20:05 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 260664] ZFS/NFS: Intermittent hangs and crashes after a period of time in: nfscl_hasexpired || dbuf_write_done || zio_execute Date: Mon, 27 Dec 2021 17:20:04 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: rmacklem@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640625606; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iyx6qsiTa9CmmsZnGo+cUg8mzYNJacEtLgoUrvbuUJo=; b=LiBfmm90Hy4M0WG0ZTySvheWsmsR/nVHdGx1nSo+eRRu/OO7jgtEQv6VkHA9dl/WQ54KoH HRz1cx/s8EiMMHHRCZnSEVcFn9dJUlHdwRastK4Mkac5h11vhUym4JeOXchKY4zIINFh6n TLMxlpD6plkJ7sAk/HSaICF9QBG19u12f3fJDEDnAcw/MfHAqSRTCx62IJUfcikszlH/cI RJRII55LM5Sog1BnO4E4kRgoOLthUuoFaS8CTA4sPh3/lHH7Jzxgr8LJ3bU6sJ0dZ8Xh79 Pe3Nntzdmp6LxNsQ9fcWJeAEmTXpcBQGqOK9xtukEwNGK1dLqqXIs7E4Dy3vgQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640625606; a=rsa-sha256; cv=none; b=ukwfOpq8jOuMVRS6qLnIOnp/nMcAuSNOE0k+fkWiMuCdmjWeByUS29ZNBbCzM4csoInaMK Vc0xyM+2VTYOMqjXpJHaqv8VON1CAV/TyNlYaNbPVmCvEIQu/gW5JEujRAuRCPWmeU2m/4 HwyjTOenmt4yg9oE4/d7+rvp9YBLmM2sk9LNkyqR9toz4VUReeCbkobn3sJKicozmI4h7F 9soTk50GVuwYl4X0jIC0bmEi6iTjriCBMVM3VB/8ahM6fcWXeoDefHsIAM9S/4Tn8DLTDG H4Mxr0e4e2kGl+1CcghUF/5bn3QuN06GRSoUjSMGQxKEfsSVfxMbEnDqb3QAng== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260664 --- Comment #11 from Rick Macklem --- Ok, it does look like the commit in stable/13 would fix this hang. It happens because read calls nfscl_hasexpired(), which tries to acquire the exclusive lock (similar to delegation return cases). However, calling nfscl_hasexpired() should *almost never* happen. It happens when the client has been partitioned from the NFSv4 server for at least a minute. For the FreeBSD NFSv4 server (which is what is called a courteous server), the expired only happens when a conflicting open/lock request is done by another client or when open/lock resources become exhausted. When recovery from "expired" is done, all byte range locks are lost, so getting the client/server into this state is to be avoiding if at all possible. If your NFSv4 server is a Linux one, expired will happen when the client is network partitioned from the server for over 60sec. In other words, I think you have some sort of network connectivity problem to the NFS server. As an alternative to upgrading to stable/13, you could switch to using NFSv3 mounts to avoid the hang. --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=