From nobody Tue Aug 11 11:05:57 2026 X-Original-To: dev-commits-src-branches@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 4hK81d5pyKz6k4b1 for ; Tue, 11 Aug 2026 11:05:57 +0000 (UTC) (envelope-from git@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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hK81d530cz3Q3H for ; Tue, 11 Aug 2026 11:05:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786446357; 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; bh=RrDeD+6rgMlLUl+7HaNpAqdMKiIoDEw2q38bkyhzsH4=; b=SdKsafqsdZYWrqYJSGZK60XOPbQud++U34eCPHCiqf6q7VQYhLJU10bRhELdHVpKgzLZA8 ttX5I+hk7VgzdjopirGpg4ci95hnk00JOxCmFr4SPfoZIr2PkLAGq1/CXVLJsgTaWy+OGa vva+NWYGj3JrVWOf4JfPe0i8LsreMGOVYuXoVUibzDnHs3lzHAqcHiE+nH6k6xYHWx+QZS AjhnTwnNf4UTFld94ZNqaLkwVuFd1zi063vQDIDnyTIoaU4+yG+BIOogiqRsR3/b4LcR2Q aYQfMOkqePWZsPiiixbFFrEdg6GxX16L1eU15sp45Q58hQsytmypRYEsIzDxHA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1786446357; a=rsa-sha256; cv=none; b=q/Eu11dWlo/GrbuwB4TcMdGF9m2SgTGCA4fWZCYp9HeAnkm934A4I092dt9wm/qere1IZG gEe4Dr8vjeo1/JKuYaHQZUWkyJlag1UyZGFfp5lx4K9rlTq12TK1Sbf0uob7GnrSThyyBb Z0hDnAW1w1P1u7vwOyB1Tbc7gxY7I8kcdttv2I9mALcb8Bi9JiHNrDPgCjYXx8XHgK9Iuw 4F4t+GEw26tOR2afff1h/0OckwhOysJXGfOTXd222+0bdrU6Vg29Qa0nF46Y0Ch2Oog5IP QanjlTXL80fXT8ZKp1yViNR2vwOn/OAQSMUqHfRe9cfdWJ9rd08jTrQ33T/ZAQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786446357; 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; bh=RrDeD+6rgMlLUl+7HaNpAqdMKiIoDEw2q38bkyhzsH4=; b=e8+0avEDsQiH1oPTyeoYTb+nFeiQvv7JQ5UmmcI6iYxxNS7IyL7CzprSBce7idi3r/i3zb fS0UbLDyzgRx8u3uDOtCG+HNy8SNPJn0qShKb1A4bO5wIwdeB+6fcpddM2X7LuTsfW9YGw Be/zlCf3BorbozWaM2SlI5osEfIp1Gl9OxVZ82cx+dVSsV1JnaCFQPStX1VAqJ0eZCS/se 787eQBBlmEtNFE8tRL7H/TKcP8bDvIR8wi+JAsn11Ru3cg6Pg1Jj9SZFdTJMppvywUr3NV FMfCaHDOJX+kzMaEVVJyfnLyU/vxVY7B7gqIwPpROTBnnd47SZMvOGcWenSosg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hK81d3jKQzsh7 for ; Tue, 11 Aug 2026 11:05:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3f5a2 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 11 Aug 2026 11:05:57 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: e84f15568e42 - stable/15 - autofs_lookup(): busy the mount point around autofs_trigger() List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: e84f15568e42027d3452a2813200a3e1449a135a Auto-Submitted: auto-generated Date: Tue, 11 Aug 2026 11:05:57 +0000 Message-Id: <6a7b0215.3f5a2.27ed150@gitrepo.freebsd.org> The branch stable/15 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=e84f15568e42027d3452a2813200a3e1449a135a commit e84f15568e42027d3452a2813200a3e1449a135a Author: Konstantin Belousov AuthorDate: 2026-08-03 17:41:46 +0000 Commit: Konstantin Belousov CommitDate: 2026-08-11 11:00:02 +0000 autofs_lookup(): busy the mount point around autofs_trigger() PR: 294361 (cherry picked from commit b95a859483f1ac0671bde55c0a2fc46f4db5ba4b) --- sys/fs/autofs/autofs_vnops.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/sys/fs/autofs/autofs_vnops.c b/sys/fs/autofs/autofs_vnops.c index e8e47f20166a..5505435c423c 100644 --- a/sys/fs/autofs/autofs_vnops.c +++ b/sys/fs/autofs/autofs_vnops.c @@ -136,16 +136,22 @@ autofs_trigger_vn(struct vnode *vp, const char *path, int pathlen, struct vnode **newvp) { struct autofs_node *anp; + struct mount *mp; int error, lock_flags; anp = vp->v_data; /* - * Release the vnode lock, so that other operations, in partcular - * mounting a filesystem on top of it, can proceed. Increase use - * count, to prevent the vnode from being deallocated and to prevent - * filesystem from being unmounted. + * Release the vnode lock, so that other operations, in + * particular mounting a filesystem on top of it, can proceed. + * Increase use count and busy the mount, to prevent the vnode + * from being deallocated and to prevent filesystem from being + * unmounted. */ + mp = vp->v_mount; + error = vfs_busy(mp, MBF_NOWAIT); + if (error != 0) + return (error); lock_flags = VOP_ISLOCKED(vp); vref(vp); VOP_UNLOCK(vp); @@ -165,6 +171,7 @@ mounted: sx_xunlock(&autofs_softc->sc_lock); vn_lock(vp, lock_flags | LK_RETRY); vunref(vp); + vfs_unbusy(mp); if (VN_IS_DOOMED(vp)) { AUTOFS_DEBUG("VIRF_DOOMED"); return (ENOENT);