Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160147838
D22008.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
747 B
Referenced Files
None
Subscribers
None
D22008.id.diff
View Options
Index: head/sys/kern/vfs_subr.c
===================================================================
--- head/sys/kern/vfs_subr.c
+++ head/sys/kern/vfs_subr.c
@@ -4395,8 +4395,6 @@
CTR2(KTR_VFS, "%s: mp %p", __func__, mp);
- vnlru_return_batch(mp);
-
MNT_VNODE_FOREACH_ACTIVE(vp, mp, mvp) {
obj = vp->v_object;
if (obj != NULL && (obj->flags & OBJ_MIGHTBEDIRTY) != 0 &&
@@ -4628,6 +4626,11 @@
return (0);
}
save = curthread_pflags_set(TDP_SYNCIO);
+ /*
+ * The filesystem at hand may be idle with free vnodes stored in the
+ * batch. Return them instead of letting them stay there indefinitely.
+ */
+ vnlru_return_batch(mp);
vfs_msync(mp, MNT_NOWAIT);
error = VFS_SYNC(mp, MNT_LAZY);
curthread_pflags_restore(save);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jun 22, 6:45 PM (17 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34204770
Default Alt Text
D22008.id.diff (747 B)
Attached To
Mode
D22008: vfs: return free vnode batches in sync instead of vfs_msync
Attached
Detach File
Event Timeline
Log In to Comment