DragonFly BSD
DragonFly commits List (threaded) for 2010-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Adjust device D_MPSAFE_* flags


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 25 Aug 2010 11:44:38 -0700 (PDT)

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]