kernel - Do not allow (devfs) devices to be force-unmounted
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 23 Jan 2013 21:56:37 +0000 (13:56 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 23 Jan 2013 21:56:37 +0000 (13:56 -0800)
commit0465e1d385953232678697cd5c17964cf45eaf49
tree6b314b8dc5a38a86448889bbac65c2da437b43f1
parente92bae40dc505e22df6ab67463f055323cf71b6c
kernel - Do not allow (devfs) devices to be force-unmounted

* Do not force-unmount devfs devices.  Even more importantly, don't
  force-unmount devfs devices and then try to force-vflush them.

  Filesystems have always been responsible for flushing their underlying
  block devices.

  These situations occur during halt/reboot.

* Fixes at least one issue when hammer's volume-add is used to specify
  a block device in /dev which is then added to the root mount.  This
  created a situation where the /dev vs / unmount order breaks.

* Should also prevent e.g. the console or other vty hangers-on from being
  destroyed out from under active descriptors during a halt or reboot.
sys/kern/vfs_mount.c