kernel - unwind kthread_create() mplock
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 28 Aug 2010 21:32:41 +0000 (14:32 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 28 Aug 2010 21:32:41 +0000 (14:32 -0700)
commitcd8ab232f5149d9b74e3bda36d4e0ba83e5d417c
tree1f369239b78647cff0e0d095d16b49745dad61c1
parent70097fd90c49054eb3c7d9127f453ca392bf702b
kernel - unwind kthread_create() mplock

* All kthread_create*() calls and kproc_start() calls now create
  threads which do not hold the mplock at startup.

* Add get_mplock()/rel_mplock() to threads which are not yet mpsafe.

* Remove rel_mplock() calls from thread startups which were making
  themselves mpsafe by releasing the mplock.

* Kernel eventhandler API is now MPSAFE

* Kernel kproc API is now MPSAFE

* Rename a few thread procedures to make their function more obvious.
39 files changed:
sys/bus/cam/cam_xpt.c
sys/bus/usb/usb.c
sys/dev/acpica5/Osd/OsdSchedule.c
sys/dev/acpica5/acpi_thermal.c
sys/dev/disk/ahci/ahci_dragonfly.c
sys/dev/disk/aic7xxx/aic79xx_osm.h
sys/dev/disk/aic7xxx/aic7xxx_osm.h
sys/dev/disk/aic7xxx/aic_osm_lib.c
sys/dev/disk/iscsi/initiator/isc_sm.c
sys/dev/disk/iscsi/initiator/isc_soc.c
sys/dev/disk/isp/isp_freebsd.c
sys/dev/disk/isp/isp_freebsd.h
sys/dev/disk/mmcsd/mmcsd.c
sys/dev/disk/mpt/mpt.h
sys/dev/disk/mpt/mpt_cam.c
sys/dev/disk/mpt/mpt_raid.c
sys/dev/disk/sili/sili_dragonfly.c
sys/dev/pccard/pccbb/pccbb.c
sys/dev/raid/aac/aac.c
sys/dev/raid/ciss/ciss.c
sys/dev/video/bktr/msp34xx.c
sys/emulation/ndis/kern_ndis.c
sys/emulation/ndis/subr_ntoskrnl.c
sys/kern/kern_kthread.c
sys/kern/kern_sensors.c
sys/kern/subr_eventhandler.c
sys/kern/vfs_bio.c
sys/kern/vfs_lock.c
sys/kern/vfs_mount.c
sys/kern/vfs_sync.c
sys/net/pf/pf.c
sys/net/pf/pf_ioctl.c
sys/netproto/smb/smb_iod.c
sys/netproto/smb/smb_subr.c
sys/netproto/smb/smb_subr.h
sys/opencrypto/crypto.c
sys/vm/vm_pageout.c
sys/vm/vm_swapcache.c
sys/vm/vm_zeroidle.c