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

DragonFly-2.3.2.323.gd0fe85 master sys/kern subr_diskslice.c vfs_conf.c sys/vfs/devfs devfs.h devfs_core.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 7 Aug 2009 10:42:37 -0700 (PDT)

commit d0fe8596b748b6801c6c0c469b1b5f7613a7f39d
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Fri Aug 7 10:39:24 2009 -0700

    DEVFS - Fix asynchronous race on reprobe, remove devfs_msg id, cleanup
    
    * The synchronous DISK_DISK_REPROBE and DISK_SLICE_REPROBE messages
      return while make_dev devices are still queued to devfs.  Add
      a call to devfs_config() to wait for the creation of those devices
      to finish before returning.
    
      This fixes numerous problems with shell scripts which fdisk + disklabel +
      newfs in a batch.
    
    * Remove devfs_msg->id, also fixing an issue where the id was retrieves
      after the message is freed.  Async entry points now return void instead
      of the id.
    
    * Adjust devfs_msg_send() to execute the message directly if the calling
      thread is the devfs message thread.  This is not strictly needed right
      now but may be used in the future.
    
    * General cleanup.

Summary of changes:
 sys/kern/subr_diskslice.c  |    6 +
 sys/kern/vfs_conf.c        |    2 +-
 sys/vfs/devfs/devfs.h      |   19 +--
 sys/vfs/devfs/devfs_core.c |  379 +++++++++++++++++++++----------------------
 4 files changed, 201 insertions(+), 205 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d0fe8596b748b6801c6c0c469b1b5f7613a7f39d


-- 
DragonFly BSD source repository



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