spinlock more of the file descriptor code. No appreciable difference in
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 24 May 2006 03:23:35 +0000 (03:23 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 24 May 2006 03:23:35 +0000 (03:23 +0000)
commit5b287bbaa260a30f5f0e6a075ea2c4e2ac2ec80a
tree1723a72f8260744fe9c2e6d7fffd3ef21224ce9f
parentc0b8a06dccf87f8888e7f60ab75cc38df3d74432
spinlock more of the file descriptor code.  No appreciable difference in
performance on buildworld tests.

Change getvnode() to holdvnode() and use semantics similar to holdsock().
The old getvnode() code wasn't fhold()ing the file pointer.  The new
holdvnode() code does.
12 files changed:
sys/emulation/linux/linux_file.c
sys/emulation/linux/linux_stats.c
sys/kern/kern_acl.c
sys/kern/kern_descrip.c
sys/kern/kern_slaballoc.c
sys/kern/subr_kcore.c
sys/kern/syscalls.master
sys/kern/vfs_cache.c
sys/kern/vfs_lock.c
sys/kern/vfs_syscalls.c
sys/sys/filedesc.h
sys/vfs/fdesc/fdesc_vnops.c