git: eede22d66d00 - main - ffs_snapshot: do not assert that um_devvp is locked

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Fri, 12 Nov 2021 23:04:17 UTC
The branch main has been updated by kib:

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

commit eede22d66d0043bf46e0aeac9496bec0a52f87a1
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-11-01 23:47:43 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-11-12 23:00:54 +0000

    ffs_snapshot: do not assert that um_devvp is locked
    
    It is not, and the lock is not needed there
    
    Reported and tested by: pho
    Reviewed by:    markj
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D32761
---
 sys/ufs/ffs/ffs_snapshot.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/ufs/ffs/ffs_snapshot.c b/sys/ufs/ffs/ffs_snapshot.c
index 5855a679ab84..a0d16d9eccef 100644
--- a/sys/ufs/ffs/ffs_snapshot.c
+++ b/sys/ufs/ffs/ffs_snapshot.c
@@ -2124,7 +2124,6 @@ ffs_snapshot_mount(mp)
 	}
 	VOP_UNLOCK(vp);
 	VI_LOCK(devvp);
-	ASSERT_VOP_LOCKED(devvp, "ffs_snapshot_mount");
 	sn->sn_listsize = snaplistsize;
 	sn->sn_blklist = (daddr_t *)snapblklist;
 	devvp->v_vflag |= VV_COPYONWRITE;
@@ -2172,7 +2171,6 @@ ffs_snapshot_unmount(mp)
 		sn = devvp->v_rdev->si_snapdata;
 	}
 	try_free_snapdata(devvp);
-	ASSERT_VOP_LOCKED(devvp, "ffs_snapshot_unmount");
 }
 
 /*