diff options
author | sam <sam@FreeBSD.org> | 2003-12-20 18:32:48 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-12-20 18:32:48 +0000 |
commit | 2a76f369023e788a7c5ccb1d06a260ac3cb0c6f1 (patch) | |
tree | 1f696b9029d105e6f415d5cbcedfc0039836d49d /sys/kern/vfs_bio.c | |
parent | 3ff50058b8f1c4e96bc4e8483146029f3f583331 (diff) | |
download | FreeBSD-src-2a76f369023e788a7c5ccb1d06a260ac3cb0c6f1.zip FreeBSD-src-2a76f369023e788a7c5ccb1d06a260ac3cb0c6f1.tar.gz |
o move mutex init/destroy logic to the module load/unload hooks;
otherwise they are initialized twice when the code is statically
configured in the kernel because the module load method gets
invoked before the user application calls ip_mrouter_init
o add a mutex to synchronize the module init/done operations; this
sort of was done using the value of ip_mroute but X_ip_mrouter_done
sets it to NULL very early on which can lead to a race against
ip_mrouter_init--using the additional mutex means this is safe now
o don't call ip_mrouter_reset from ip_mrouter_init; this now happens
once at module load and X_ip_mrouter_done does the appropriate
cleanup work to insure the data structures are in a consistent
state so that a subsequent init operation inherits good state
Reviewed by: juli
Diffstat (limited to 'sys/kern/vfs_bio.c')
0 files changed, 0 insertions, 0 deletions