kernel - More tty and devfs race fixes
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 13 Aug 2010 04:09:13 +0000 (21:09 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 13 Aug 2010 04:09:13 +0000 (21:09 -0700)
commit2281ff2e747640a3804f657da1ffadfb3f93eb75
tree437095fd7bc7024f6fe55d028aae6e778e28eb0a
parent320a5c59a1e83c4392b5d5efba75163a286bd94c
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
sys/dev/netif/iwi/if_iwi.c
sys/kern/tty_pty.c
sys/sys/devfs.h
sys/vfs/devfs/devfs_helper.c