Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Aug 2021 16:20:53 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 614faa32691b - main - vfs: fix cache-relatecd LOR introduced in the previous change
Message-ID:  <202108221620.17MGKrfp007086@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg:

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

commit 614faa32691bf9ccd2690624ad37470e08fd14d3
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-08-22 16:17:42 +0000
Commit:     Mateusz Guzik <mjg@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108221620.17MGKrfp007086>