tmpfs - Fix readdir race
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 23 Oct 2013 18:01:30 +0000 (11:01 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 23 Oct 2013 18:01:30 +0000 (11:01 -0700)
commitf5f22af6200b5b3502d008cb8f365cec14374e10
tree3131b9f6ad7d683be5802e34e3680613cd0472aa
parent833d1222afa0bc6fc0c9e12ad0bf90067e700b34
tmpfs - Fix readdir race

* The original cookie cache does not play nice with shared locks.
  Replace it with a second RB tree, indexed by cookie.
sys/vfs/tmpfs/tmpfs.h
sys/vfs/tmpfs/tmpfs_subr.c
sys/vfs/tmpfs/tmpfs_vnops.c