kernel - Adjust device D_MPSAFE_* flags
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 25 Aug 2010 18:35:53 +0000 (11:35 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 25 Aug 2010 18:35:53 +0000 (11:35 -0700)
commit9f889dc4a590f18343b80275521c3f50d7030272
treefa89860102d4d8b082d5a677222831da69e789d0
parent6a25f455ef59d044d9317337073176fc5c2d1965
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.
sys/bus/cam/scsi/scsi_cd.c
sys/bus/cam/scsi/scsi_da.c
sys/dev/disk/dm/device-mapper.c
sys/kern/kern_device.c
sys/kern/kern_memio.c
sys/kern/subr_disk.c
sys/opencrypto/cryptodev.c
sys/sys/device.h
sys/vfs/devfs/devfs_vfsops.c
sys/vfs/devfs/devfs_vnops.c