Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171077102
D3279.id7673.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D3279.id7673.diff
View Options
Index: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
===================================================================
--- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
+++ sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
@@ -132,9 +132,6 @@
* distinguish between the operation failing, and
* deserialization failing.
*/
-#ifdef __FreeBSD__
-#include "opt_kstack_pages.h"
-#endif
#include <sys/types.h>
#include <sys/param.h>
@@ -6503,12 +6500,12 @@
{
#ifdef __FreeBSD__
-#if KSTACK_PAGES < ZFS_MIN_KSTACK_PAGES
- printf("ZFS NOTICE: KSTACK_PAGES is %d which could result in stack "
- "overflow panic!\nPlease consider adding "
- "'options KSTACK_PAGES=%d' to your kernel config\n", KSTACK_PAGES,
- ZFS_MIN_KSTACK_PAGES);
-#endif
+ if (thread0.td_kstack_pages < ZFS_MIN_KSTACK_PAGES) {
+ printf("ZFS NOTICE: thread0 kstack_pages is %d which could "
+ "result in stack overflow panic!\nPlease consider adding "
+ "'options KSTACK_PAGES=%d' to your kernel config\n",
+ thread0.td_kstack_pages, ZFS_MIN_KSTACK_PAGES);
+ }
#endif
zfs_root_token = root_mount_hold("ZFS");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 9, 1:50 PM (17 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38590670
Default Alt Text
D3279.id7673.diff (1 KB)
Attached To
Mode
D3279: Improve kernel stack pages check in ZFS module
Attached
Detach File
Event Timeline
Log In to Comment