From nobody Wed Jun 22 12:36:47 2022 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 C67E685D165 for ; Wed, 22 Jun 2022 12:36:48 +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 4LSjYr4Yzyz3MC5 for ; Wed, 22 Jun 2022 12:36:48 +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 7D82C2653D for ; Wed, 22 Jun 2022 12:36:48 +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 25MCamcA051343 for ; Wed, 22 Jun 2022 12:36:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 25MCamT5051341 for fs@FreeBSD.org; Wed, 22 Jun 2022 12:36:48 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 165392] [ufs] [patch] Multiple mkdir/rmdir fails with errno 31 Date: Wed, 22 Jun 2022 12:36:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 9.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: 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=1655901408; 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=QTGU3kvB73k6+zOiT5SpcCFqQ4VKSktGhvyYL54FLwk=; b=C9btJwKnf5x+zZv4ytGFSOefL8e7FdxIBsRrZiFHb6k+4SKjeRA++TGqIuCAr+P3RMv4DJ yvCGhukN+IM1M0AYxj2V7vIE20Kazwoecxd9UVluG9lRXXikRjmMbA+nwXzLJZDz2gZZ7C wbxVxT59QHPVdzOM1Io6thnCjdzb7vKO21VgLuJZ0QcIcedrE2VGfRPYqbi7+DYz1Hmneo H4byxW8B9RA1RmmpXDbMMESnQQGnT11NWU88L1Cbn6Wj5qqcPH/RB4zOhQhhdjWZxbs2Jq EXdteunsm8ZZImGgDtht9zfM9V9rjmV7PfpPHQL/njsjGqzYEcRPhl3w7F1g5w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655901408; a=rsa-sha256; cv=none; b=INAzucENnQjUvRiLRjin96B60oziM+ZdrCftTuMJzYxlNkdDnbSYYngTY1KbfHwQCcjoKY U89MvHCvIOaPToYmD4gyXKHMSQFEPvXOwz/KH1JMZaDW7ROWXR/WHDMRkUz/vrjkuUBrsK YTyYlMnmALZxCrACeSb26lV8Cswr1fBHD+9W3hgWfdTlApyK/oNe7FiUixIf0oG3taJp10 UWXyvk8ZgCcLklk/K4FzE2IvhwbF99uLTX00M+IHy0RtyL4Ll1pwfc69G6gpn4ze3n7hAa 18CCUTq08BiSMrcJKwo4v/bpF+k/Ypn4SjTLW+Bl7BoVmYNht9w75+hmTB0QRQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D165392 --- Comment #13 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D8db679af66b023802139d41e275e41a77= da1c515 commit 8db679af66b023802139d41e275e41a77da1c515 Author: Konstantin Belousov AuthorDate: 2022-06-18 10:59:31 +0000 Commit: Konstantin Belousov CommitDate: 2022-06-22 12:35:47 +0000 UFS: make mkdir() and link() reliable when using SU and reaching nlink limit i_nlink overflow might be transient, i_effnlink indicates the final value of the link count after all dependencies would be resolved. So if i_nlink reached the maximum but i_efflink did not, we should be able to make the link by syncing. We must sync the whole filesystem to resolve dependencies, which requires unlocking vnodes locked for VOPs. Use existing ERELOOKUP/VOP_UNLOCK_PAIR() mechanism to restart the VOP if sync with unlock was done. PR: 165392 Reported by: Vsevolod Volkov Reviewed by: mckusick Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D35514 sys/ufs/ufs/ufs_vnops.c | 42 +++++++++++++++++++++++++++++++++++------- 1 file changed, 35 insertions(+), 7 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=