git: kernel - Adjust device D_MPSAFE_* flags

看板DFBSD_commit作者時間15年前 (2010/08/26 03:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 9f889dc4a590f18343b80275521c3f50d7030272 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Wed Aug 25 11:35:53 2010 -0700 kernel - Adjust device D_MPSAFE_* flags * Replace all device D_MPSAFE_* flags with just D_MPSAFE - Mark CAM's "da" and "cd" devices D_MPSAFE - Mark dm (device mapper) D_MPSAFE - Mark memio MPSAFE - Mark the disk subsystem D_MPSAFE - Mark the crypto device D_MPSAFE * Devices marked D_MPSAFE now call their strategy functions without the mp lock. * Do a pass on devfs and mark it MNTK_ALL_MPSAFE. devfs was essentially already MPSAFE but the D_MPSAFE checks have been moved out of devfs and into the dev_d*() API wrappers. Summary of changes: sys/bus/cam/scsi/scsi_cd.c | 2 +- sys/bus/cam/scsi/scsi_da.c | 2 +- sys/dev/disk/dm/device-mapper.c | 3 +- sys/kern/kern_device.c | 176 +++++++++++++++++++++++++++-- sys/kern/kern_memio.c | 26 +++- sys/kern/subr_disk.c | 20 +++- sys/opencrypto/cryptodev.c | 2 +- sys/sys/device.h | 4 +- sys/vfs/devfs/devfs_vfsops.c | 59 +++++----- sys/vfs/devfs/devfs_vnops.c | 238 ++++++++++++++++---------------------- 10 files changed, 336 insertions(+), 196 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9f889dc4a590f18343b80275521c3f50d7030272 -- DragonFly BSD source repository
文章代碼(AID): #1CTMXqnm (DFBSD_commit)