FreeBSD Bugzilla – Attachment 165768 Details for
Bug 206328
Crash on shutdown with swap on NFS file (with patch)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
NFSSwapOff.patch (text/plain), 634 bytes, created by
Tom Vijlbrief
on 2016-01-18 17:39:47 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Tom Vijlbrief
Created:
2016-01-18 17:39:47 UTC
Size:
634 bytes
patch
obsolete
>diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c >index 6b8f79f..96375c9 100644 >--- a/sys/kern/vfs_bio.c >+++ b/sys/kern/vfs_bio.c >@@ -1182,6 +1182,14 @@ bufshutdown(int show_busybufs) > #endif > > /* >+ * Swapoff all BEFORE unmounting filesystems >+ * because these can host swap files. >+ */ >+ printf("Swapoff all...\n"); >+ wdog_kern_pat(WD_LASTVAL); >+ swapoff_all(); >+ >+ /* > * Sync filesystems for shutdown > */ > wdog_kern_pat(WD_LASTVAL); >@@ -1283,7 +1291,6 @@ bufshutdown(int show_busybufs) > if (panicstr == NULL) > vfs_unmountall(); > } >- swapoff_all(); > DELAY(100000); /* wait for console output to finish */ > } >
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 206328
: 165768