From nobody Sat May 16 23:24:27 2026 X-Original-To: dev-commits-src-main@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 4gJ0Ww0swvz6dG1X for ; Sat, 16 May 2026 23:24:28 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gJ0Ww09MRz45fn for ; Sat, 16 May 2026 23:24:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778973868; 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=jd9NqqUomoOxEJKxnACsAaQeHX9d4dku61FGCZZcbNI=; b=qnF4Bzp7nu/yED6YVEvrrQrvWkiDun8nksyRTvX863WDW+Lp84ZzvXaYpLhwgYpeLSePNW S9DZLcbSp6PDuXqYPHaV1IPo/xyThUJf1p782UEOmxt1q9vIqAXMwk547DDO03s9yLQ0+z iiRoFXgte6osDXcNN527dDPPuxOPictD8UAEl25zqMPk6Robka3MNJYjjzH4dO38SZEk49 SBYmNZg5o8QQ43jzh58x/VIoRR9Vl0OY+lpE2BmxlzIpClqmNBBYl8qIGVpVuWHVKPsGnr GJV8YDBSs3NPVm4ZrwgOKSWLrpT161KwyZUZ+QPgtamJH94GjSYJgzGb6AboGg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1778973868; a=rsa-sha256; cv=none; b=pmxtUCgf1NSk7otAY1JdQXoIse9IJ1X5uzCe4HrXyTZNa2KL5YPBQuZzeDu6k4TZaFRDnU LXh3FuAZ95CPnfCLZQpmvwDEuyUK24HOSHU6gWrXCo6CMKG01gUwgwMWlMHSk8D/uGMi9n P7qj+8wneL2vmif7tr5kxosOT/3mavuZq3gbhPB5shhi/JcYYtAUFxDZOL9ReOL+x4ei4X 5TFM/2gty2T35q3KQ4pCx25QMTsjAiTk6Obn03HRR9PzldxgoJmMqw8sx3GA/urwKepJkk 5IMA7bhZ2F2MjzYp6kPBXtij6Mev8sN+xZlj4W2GVY5gZ41gItO5OzWjpercag== 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=1778973868; 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=jd9NqqUomoOxEJKxnACsAaQeHX9d4dku61FGCZZcbNI=; b=cYHzJ0lAo4bBXVv+A9cjFUiQuYHluK8toHDnAnyVTueovZGq963BZ/gWz57mq2sSIdFvdh Vf/kApNLQmtLTekdjlmPszClfaPoWzeu0Akil+daPbCAVUYry64KT8SCLbZ9CL4KOyceaI qIIN2DxiymBjbiLWeh52CRzhVwtNk1NNZK8UIu1wKOORR9qyRmWeGlxPzJfI7kxbBGNO0f kYIHlHqykmFaxd/up1sBmR61amRUFFoXNXk4vyHjH2csHJxll8ab+gPMOvom0xMM9GaA5v ZB7whJkwP9FRssUnzmG44Z1Y3E21p8CFT2sF2bAaOFnR4gw4WboylIY23M3xjw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gJ0Wv6cBCzjH for ; Sat, 16 May 2026 23:24:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1c6f7 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 16 May 2026 23:24:27 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 43a8585cb2bb - main - sys/mount.h: restore KNF_NOKQLOCK in VFS_KNOTE_{,UN}LOCKED() call to KNOTE() List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 43a8585cb2bb0e284df672174a57780e53107d27 Auto-Submitted: auto-generated Date: Sat, 16 May 2026 23:24:27 +0000 Message-Id: <6a08fcab.1c6f7.2f21ecdb@gitrepo.freebsd.org> The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=43a8585cb2bb0e284df672174a57780e53107d27 commit 43a8585cb2bb0e284df672174a57780e53107d27 Author: Konstantin Belousov AuthorDate: 2026-05-16 19:11:43 +0000 Commit: Konstantin Belousov CommitDate: 2026-05-16 23:24:10 +0000 sys/mount.h: restore KNF_NOKQLOCK in VFS_KNOTE_{,UN}LOCKED() call to KNOTE() ZFS needs to take internal sleepable lock in its implementation of VOP_GETATTR(). Due to this, kq must be unlocked around calls to the vfs filter methods. Fixes: 1d5e4020e36e ("vnode: add VIRF_KNOTE flag") Reported and tested by: des Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/sys/mount.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/sys/mount.h b/sys/sys/mount.h index d6696bba0a4f..2e880bac9068 100644 --- a/sys/sys/mount.h +++ b/sys/sys/mount.h @@ -968,8 +968,8 @@ static inline void VFS_KNOTE_LOCKED(struct vnode *vp, int hint) { if ((vn_irflag_read(vp) & VIRF_KNOTE) != 0) { - KNOTE_LOCKED(&vp->v_pollinfo->vpi_selinfo.si_note, - hint); + KNOTE(&vp->v_pollinfo->vpi_selinfo.si_note, + hint, KNF_LISTLOCKED | KNF_NOKQLOCK); } } @@ -977,8 +977,8 @@ static inline void VFS_KNOTE_UNLOCKED(struct vnode *vp, int hint) { if ((vn_irflag_read(vp) & VIRF_KNOTE) != 0) { - KNOTE_UNLOCKED(&vp->v_pollinfo->vpi_selinfo.si_note, - hint); + KNOTE(&vp->v_pollinfo->vpi_selinfo.si_note, + hint, KNF_NOKQLOCK); } }