git: c21aa81a7847 - stable/15 - vp_crossmp: weaken the assert and make it more precise
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Sep 2026 00:45:06 UTC
The branch stable/15 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=c21aa81a78479ab9c3a441248648537336346bc3
commit c21aa81a78479ab9c3a441248648537336346bc3
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-09-06 15:11:41 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-09-13 03:09:09 +0000
vp_crossmp: weaken the assert and make it more precise
(cherry picked from commit c63c77b3a5312dfd00f7749a07269119da886609)
---
sys/kern/vfs_lookup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c
index 8d1d9cfff8aa..0550a4fc0d4d 100644
--- a/sys/kern/vfs_lookup.c
+++ b/sys/kern/vfs_lookup.c
@@ -133,7 +133,7 @@ crossmp_vop_lock1(struct vop_lock1_args *ap)
lk = vp->v_vnlock;
flags = ap->a_flags;
- KASSERT((flags & (LK_SHARED | LK_NOWAIT)) == (LK_SHARED | LK_NOWAIT),
+ KASSERT((flags & LK_TYPE_MASK) == LK_SHARED,
("%s: invalid lock request 0x%x for crossmp", __func__, flags));
if ((flags & LK_INTERLOCK) != 0)