mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 19:19:32 +03:00
TASKQ_DYNAMIC not yet support, do not create the global taskq with that flag or we crash with debug enabled. Also don't bother dumping debug when debugging is diabled, it's pointless
This commit is contained in:
parent
b871b8cdef
commit
b172b6dfde
@ -1118,8 +1118,10 @@ void spl_debug_bug(char *file, const char *func, const int line, int flags)
|
|||||||
if (spl_debug_panic_on_bug)
|
if (spl_debug_panic_on_bug)
|
||||||
spl_panic_in_progress = 1;
|
spl_panic_in_progress = 1;
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
spl_debug_dumpstack(NULL);
|
spl_debug_dumpstack(NULL);
|
||||||
spl_debug_dumplog(flags);
|
spl_debug_dumplog(flags);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (spl_debug_panic_on_bug)
|
if (spl_debug_panic_on_bug)
|
||||||
panic("SBUG");
|
panic("SBUG");
|
||||||
|
@ -475,7 +475,7 @@ spl_taskq_init(void)
|
|||||||
ENTRY;
|
ENTRY;
|
||||||
|
|
||||||
system_taskq = taskq_create("system_taskq", 64, minclsyspri, 4, 512,
|
system_taskq = taskq_create("system_taskq", 64, minclsyspri, 4, 512,
|
||||||
TASKQ_DYNAMIC | TASKQ_PREPOPULATE);
|
TASKQ_PREPOPULATE);
|
||||||
if (system_taskq == NULL)
|
if (system_taskq == NULL)
|
||||||
RETURN(1);
|
RETURN(1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user