git: kernel - More tty and devfs race fixes

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Aug 12 21:13:30 PDT 2010


commit 2281ff2e747640a3804f657da1ffadfb3f93eb75
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Aug 12 21:09:13 2010 -0700

    kernel - More tty and devfs race fixes
    
    * Refactor the unix98 pty code to consolidate termination handling and
      add flags to deal with close() races.
    
    * Rename devfs_clone_bitmap_rst() to devfs_clone_bitmap_put()
    
    * devfs_clone_bitmap_put() now syncs devfs messages before clearing
      the bitmap bit, to ensure that related destroy_dev()s complete
      before the unit number becomes available for a new allocation
      again.
    
    Reported-by: swildner

Summary of changes:
 sys/dev/netif/iwi/if_iwi.c   |    2 +-
 sys/kern/tty_pty.c           |  186 ++++++++++++++++++++++++++++--------------
 sys/sys/devfs.h              |    3 +-
 sys/vfs/devfs/devfs_helper.c |   14 +++-
 4 files changed, 137 insertions(+), 68 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2281ff2e747640a3804f657da1ffadfb3f93eb75


-- 
DragonFly BSD source repository





More information about the Commits mailing list