unmount - fix issue with process refs on unmount
authorAlex Hornung <ahornung@gmail.com>
Fri, 2 Jul 2010 20:29:17 +0000 (21:29 +0100)
committerAlex Hornung <ahornung@gmail.com>
Fri, 2 Jul 2010 20:39:24 +0000 (21:39 +0100)
commit32b7c8fd87be7c51dc88c41996a6a847e11ceede
tree13aab3af1386988f2f6d14bc7975fac387510cb2
parent8cb4cb977a27c8490714d0f49ed8c246d77e12d4
unmount - fix issue with process refs on unmount

* The p_textnch introduction made this issue appear, as some processes
  are still alive at system shutdown and their p_textnch were holding
  these references to the mount nch.

* On unmount of a filesystem we now scan all active processes for procs
  whose p_textnch is related to the mountpoint we are getting rid of,
  and release these.

Dragonfly-bug: http://bugs.dragonflybsd.org/issue1708
Special-Thanks-To: Antonio Huete (tuxillo@) for identifying the
offending commit and extensive testing
sys/kern/vfs_syscalls.c