buffer cache - Control all access to the buf red-black trees with vp->v_token
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 13 Jul 2009 17:55:24 +0000 (10:55 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 13 Jul 2009 17:55:24 +0000 (10:55 -0700)
commit0202303b67456174b88e4b40807faec651bd38ef
treecbf3f0d6d45380a22392e007cb7aec7e7542d8f4
parent8ed305a43884c3962b8b8c6cdb7cb8046d04277f
buffer cache - Control all access to the buf red-black trees with vp->v_token

Access to the buffer cache's RB trees is now controlled via vp->v_token
instead of a critical section.  We still hold the BGL but this is not
quite as simple as it seems because an interrupt calling biodone() on a
B_INVAL buffer may now potentially block, where as it would not have before.
The buffer is locked.
sys/kern/vfs_bio.c
sys/kern/vfs_subr.c
sys/kern/vfs_sync.c
sys/sys/vnode.h
sys/vfs/gnu/ext2fs/ext2_vnops.c
sys/vfs/hammer/hammer_vnops.c
sys/vfs/nfs/nfs_subs.c
sys/vfs/nfs/nfs_vnops.c
sys/vfs/ufs/ffs_rawread.c
sys/vfs/ufs/ffs_softdep.c
sys/vfs/ufs/ufs_vnops.c