aboutsummaryrefslogtreecommitdiff
path: root/tests/api/test-buffer.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2026-09-06 15:11:41 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2026-09-07 15:46:03 +0000
commitc63c77b3a5312dfd00f7749a07269119da886609 (patch)
tree0b57ac7e5f36b6fab3d130fd3ab957e1a82dacc5 /tests/api/test-buffer.c
parenta7258157e1a20957af23332814197ea723f5778d (diff)
vp_crossmp: weaken the assert and make it more preciseHEADmain
Since the vp_crossmp vnode can leak into vn_vptocnp() calls due to nullfs file mounting, not all lock requests are non-sleeping. The requirement for the crossmp locking is that all lock requests should be shared. Then, it does not matter if the requests allow sleeping, since all locks are shared. Also, check the lock type by correctly masking it with LK_TYPE_MASK. Reported and tested by: pho Reviewed by: jah, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D59468
Diffstat (limited to 'tests/api/test-buffer.c')
0 files changed, 0 insertions, 0 deletions