Remove linux_mib_destroy() (which I actually added in between 5.0 and 5.1)
which existed to cleanup the linux_osname mutex. Now that MTX_SYSINIT() has grown a SYSUNINIT to destroy mutexes on unload, the extra destroy here was redundant and resulted in panics in debug kernels. MFC after: 1 week Reported by: Goran Gajic ggajic at afrodita dot rcub dot bg dot ac dot yu
This commit is contained in:
parent
7aac169e18
commit
410d857972
@ -265,7 +265,6 @@ linux_elf_modevent(module_t mod, int type, void *data)
|
||||
linux_ioctl_unregister_handler(*lihp);
|
||||
if (bootverbose)
|
||||
printf("Linux ELF exec handler removed\n");
|
||||
linux_mib_destroy();
|
||||
} else
|
||||
printf("Could not deinstall ELF interpreter entry\n");
|
||||
break;
|
||||
|
@ -1083,7 +1083,6 @@ linux_elf_modevent(module_t mod, int type, void *data)
|
||||
linux_ioctl_unregister_handler(*lihp);
|
||||
if (bootverbose)
|
||||
printf("Linux ELF exec handler removed\n");
|
||||
linux_mib_destroy();
|
||||
} else
|
||||
printf("Could not deinstall ELF interpreter entry\n");
|
||||
break;
|
||||
|
@ -155,13 +155,6 @@ linux_get_prison(struct thread *td)
|
||||
return (pr);
|
||||
}
|
||||
|
||||
void
|
||||
linux_mib_destroy(void)
|
||||
{
|
||||
|
||||
mtx_destroy(&osname_lock);
|
||||
}
|
||||
|
||||
void
|
||||
linux_get_osname(struct thread *td, char *dst)
|
||||
{
|
||||
|
@ -31,8 +31,6 @@
|
||||
#ifndef _LINUX_MIB_H_
|
||||
#define _LINUX_MIB_H_
|
||||
|
||||
void linux_mib_destroy(void);
|
||||
|
||||
void linux_get_osname(struct thread *td, char *dst);
|
||||
int linux_set_osname(struct thread *td, char *osname);
|
||||
|
||||
|
@ -925,7 +925,6 @@ linux_elf_modevent(module_t mod, int type, void *data)
|
||||
linux_ioctl_unregister_handler(*lihp);
|
||||
if (bootverbose)
|
||||
printf("Linux ELF exec handler removed\n");
|
||||
linux_mib_destroy();
|
||||
} else
|
||||
printf("Could not deinstall ELF interpreter entry\n");
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user