kernel/nfs: Fix up the per-export address lists.
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 21 Aug 2015 21:23:15 +0000 (14:23 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 21 Aug 2015 21:23:15 +0000 (14:23 -0700)
commitf9ecb661cee333906bd85893e928c848078a6af2
tree2e8c079249cac55bcb955390083f7e371f490999
parent7b90aa483ff707ef21739a992688317b6b4eb5cf
kernel/nfs: Fix up the per-export address lists.

* Use a pool token to properly protect access to both the radix
  trees and the mask tree.

* Also free the mask tree when freeing the address list trees.

* Fix a few bugs in the original work (ne_inethead and ne_inet6head
  were not assigned, *prnh not set to NULL on free, and ne_maskhead
  was being unconditionally freed even if it wasn't initialized.

Reported-by: profmakx
Lots-of-help-from: sephe, dillon
Submitted-by: Nuno Antunes <nuno.antunes@gmail.com>
sys/kern/vfs_subr.c
sys/sys/mount.h