FreeBSD Bugzilla – Attachment 131991 Details for
Bug 176169
[vfs] [patch] system unresponsive for 1min after mounting flash read-only
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 970 bytes, created by
nkoch
on 2013-02-15 13:50:03 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
nkoch
Created:
2013-02-15 13:50:03 UTC
Size:
970 bytes
patch
obsolete
>diff -r 89885db951fb src/sys/kern/vfs_subr.c >--- a/src/sys/kern/vfs_subr.c Mon Feb 04 14:45:48 2013 +0100 >+++ b/src/sys/kern/vfs_subr.c Fri Feb 15 14:32:09 2013 +0100 >@@ -121,6 +121,11 @@ > SYSCTL_ULONG(_vfs, OID_AUTO, numvnodes, CTLFLAG_RD, &numvnodes, 0, > "Number of vnodes in existence"); > >+static int forcesync; >+ >+SYSCTL_INT(_vfs, OID_AUTO, forcesync, CTLFLAG_RW, &forcesync, 0, >+ "Do full checks when switching to RO mount of FS"); >+ > /* > * Conversion tables for conversion from vnode types to inode formats > * and back. >@@ -2581,6 +2586,7 @@ > * vnodes open for writing. > */ > if (flags & WRITECLOSE) { >+ if (forcesync) { > if (vp->v_object != NULL) { > VM_OBJECT_LOCK(vp->v_object); > vm_object_page_clean(vp->v_object, 0, 0, 0); >@@ -2593,6 +2599,7 @@ > MNT_VNODE_FOREACH_ALL_ABORT(mp, mvp); > return (error); > } >+ } > error = VOP_GETATTR(vp, &vattr, td->td_ucred); > VI_LOCK(vp);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 176169
: 131991