git: kernel - unwind kthread_create() mplock

看板DFBSD_commit作者時間15年前 (2010/08/29 06:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit cd8ab232f5149d9b74e3bda36d4e0ba83e5d417c Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Sat Aug 28 14:32:41 2010 -0700 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. Summary of changes: sys/bus/cam/cam_xpt.c | 4 ++ sys/bus/usb/usb.c | 7 +++- sys/dev/acpica5/Osd/OsdSchedule.c | 4 ++- sys/dev/acpica5/acpi_thermal.c | 7 +++- sys/dev/disk/ahci/ahci_dragonfly.c | 4 +- sys/dev/disk/aic7xxx/aic79xx_osm.h | 2 + sys/dev/disk/aic7xxx/aic7xxx_osm.h | 2 + sys/dev/disk/aic7xxx/aic_osm_lib.c | 6 +++- sys/dev/disk/iscsi/initiator/isc_sm.c | 6 +++- sys/dev/disk/iscsi/initiator/isc_soc.c | 8 +++- sys/dev/disk/isp/isp_freebsd.c | 2 + sys/dev/disk/isp/isp_freebsd.h | 2 + sys/dev/disk/mmcsd/mmcsd.c | 12 +++++-- sys/dev/disk/mpt/mpt.h | 15 +++------ sys/dev/disk/mpt/mpt_cam.c | 5 ++- sys/dev/disk/mpt/mpt_raid.c | 5 ++- sys/dev/disk/sili/sili_dragonfly.c | 4 +- sys/dev/pccard/pccbb/pccbb.c | 5 ++- sys/dev/raid/aac/aac.c | 10 +++-- sys/dev/raid/ciss/ciss.c | 9 +++-- sys/dev/video/bktr/msp34xx.c | 14 +++++--- sys/emulation/ndis/kern_ndis.c | 5 ++- sys/emulation/ndis/subr_ntoskrnl.c | 11 +++++-- sys/kern/kern_kthread.c | 33 +++++++++++--------- sys/kern/kern_sensors.c | 6 +++- sys/kern/subr_eventhandler.c | 53 +++++++++++++++++++++---------- sys/kern/vfs_bio.c | 10 +++-- sys/kern/vfs_lock.c | 2 +- sys/kern/vfs_mount.c | 7 +++- sys/kern/vfs_sync.c | 25 +++++++++------ sys/net/pf/pf.c | 4 ++ sys/net/pf/pf_ioctl.c | 16 +++------ sys/netproto/smb/smb_iod.c | 7 +++- sys/netproto/smb/smb_subr.c | 10 +++-- sys/netproto/smb/smb_subr.h | 6 ++-- sys/opencrypto/crypto.c | 8 +++- sys/vm/vm_pageout.c | 20 ++++++----- sys/vm/vm_swapcache.c | 20 ++++++----- sys/vm/vm_zeroidle.c | 11 +++--- 39 files changed, 249 insertions(+), 138 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cd8ab232f5149d9b74e3bda36d4e0ba83e5d417c -- DragonFly BSD source repository
文章代碼(AID): #1CUOSXOV (DFBSD_commit)