git: 614faa32691b - main - vfs: fix cache-relatecd LOR introduced in the previous change

Mateusz Guzik mjg at FreeBSD.org
Sun Aug 22 16:20:54 UTC 2021


The branch main has been updated by mjg:

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

commit 614faa32691bf9ccd2690624ad37470e08fd14d3
Author:     Mateusz Guzik <mjg at FreeBSD.org>
AuthorDate: 2021-08-22 16:17:42 +0000
Commit:     Mateusz Guzik <mjg at FreeBSD.org>
CommitDate: 2021-08-22 16:20:07 +0000

    vfs: fix cache-relatecd LOR introduced in the previous change
    
    Reported by:    kib
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/kern/vfs_mount.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index 166d7336eaf1..6804f6eb68bf 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -1212,10 +1212,10 @@ vfs_domount_first(
 	MNT_IUNLOCK(mp);
 
 	VI_LOCK(vp);
-	cache_purge(vp);
 	vn_irflag_set_locked(vp, VIRF_MOUNTPOINT);
 	vp->v_mountedhere = mp;
 	VI_UNLOCK(vp);
+	cache_purge(vp);
 
 	/*
 	 * We need to lock both vnodes.


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