git: 34477e25c1d4 - main - fusefs: only check vnode locks with DEBUG_VFS_LOCKS

Alan Somers asomers at FreeBSD.org
Sun Jan 3 16:20:04 UTC 2021


The branch main has been updated by asomers:

URL: https://cgit.FreeBSD.org/src/commit/?id=34477e25c1d4ea8829415b9e907f67588465cc0a

commit 34477e25c1d4ea8829415b9e907f67588465cc0a
Author:     Alan Somers <asomers at FreeBSD.org>
AuthorDate: 2021-01-01 21:27:03 +0000
Commit:     Alan Somers <asomers at FreeBSD.org>
CommitDate: 2021-01-03 16:19:00 +0000

    fusefs: only check vnode locks with DEBUG_VFS_LOCKS
    
    MFC-With:       37df9d3bba8577fcdd63382ff5a4a5cbb4aa55b4
    Reviewed by:    cem
    Differential Revision:  https://reviews.freebsd.org/D27939
---
 sys/fs/fuse/fuse_vnops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/fs/fuse/fuse_vnops.c b/sys/fs/fuse/fuse_vnops.c
index 437236882457..f26f96b8be99 100644
--- a/sys/fs/fuse/fuse_vnops.c
+++ b/sys/fs/fuse/fuse_vnops.c
@@ -330,7 +330,7 @@ fuse_vnop_do_lseek(struct vnode *vp, struct thread *td, struct ucred *cred,
 	struct mount *mp = vnode_mount(vp);
 	int err;
 
-	MPASS(VOP_ISLOCKED(vp));
+	ASSERT_VOP_LOCKED(vp, __func__);
 
 	err = fuse_filehandle_getrw(vp, FREAD, &fufh, cred, pid);
 	if (err)


More information about the dev-commits-src-main mailing list