mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-22 17:54:52 +00:00
Pre-wire the output buffer so that sysctl_kern_function_list() doesn't
block in SYSCTL_OUT() while holding a lock.
This commit is contained in:
parent
0600730d73
commit
dcbe050b29
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100488
|
@ -1794,6 +1794,7 @@ sysctl_kern_function_list(SYSCTL_HANDLER_ARGS)
|
|||
linker_file_t lf;
|
||||
int error;
|
||||
|
||||
sysctl_wire_old_buffer(req, 0);
|
||||
mtx_lock(&kld_mtx);
|
||||
TAILQ_FOREACH(lf, &linker_files, link) {
|
||||
error = LINKER_EACH_FUNCTION_NAME(lf,
|
||||
|
|
Loading…
Reference in a new issue