git: kernel - Adjust device D_MPSAFE_* flags

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Aug 25 11:46:04 PDT 2010


commit 9f889dc4a590f18343b80275521c3f50d7030272
Author: Matthew Dillon <dillon at 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





More information about the Commits mailing list