mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
Be careful to never use any of the debug infrastructure either
before the debug subsystem is fully set up, or after the debug subsystem has been torn down. git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@86 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
parent
7e4e211333
commit
18c9eadf97
@ -90,10 +90,9 @@ set_hostid(void)
|
||||
static int __init spl_init(void)
|
||||
{
|
||||
int rc = 0;
|
||||
ENTRY;
|
||||
|
||||
if ((rc = debug_init()))
|
||||
RETURN(rc);
|
||||
return rc;
|
||||
|
||||
if ((rc = kmem_init()))
|
||||
GOTO(out , rc);
|
||||
@ -120,7 +119,7 @@ out:
|
||||
|
||||
printk("SPL: Failed to Load Solaris Porting Layer v%s, "
|
||||
"rc = %d\n", VERSION, rc);
|
||||
RETURN(rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
static void spl_fini(void)
|
||||
@ -132,8 +131,6 @@ static void spl_fini(void)
|
||||
vn_fini();
|
||||
kmem_fini();
|
||||
debug_fini();
|
||||
|
||||
EXIT;
|
||||
}
|
||||
|
||||
module_init(spl_init);
|
||||
|
Loading…
Reference in New Issue
Block a user