kernel/socket: Allow the network stack to be unloaded on KDEBUG kernels.

This includes nightly builds; but at least we keep the efficiency gain
on release builds.
This commit is contained in:
Augustin Cavalier 2024-05-28 16:32:13 -04:00
parent 6b99b20692
commit d12b3a0e1d

View File

@ -81,7 +81,8 @@ put_stack_interface_module()
if (atomic_add(&sStackInterfaceConsumers, -1) != 1)
return;
#if 0 /* Just leave the stack loaded, for now. */
// Keep the stack loaded on non-KDEBUG kernels.
#if KDEBUG
WriteLocker _(sLock);
if (atomic_get(&sStackInterfaceConsumers) > 0)
return;