vfs: fix cache-relatecd LOR introduced in the previous change

Reported by:	kib
Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2021-08-22 16:17:42 +00:00
parent 3904e7966e
commit 614faa3269

View File

@ -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.