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:
Don Lewis 2002-07-22 08:28:09 +00:00
parent 0600730d73
commit dcbe050b29
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100488

View file

@ -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,