Greatly reduce the MP locking that occurs in closef(), and remove
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 27 May 2006 01:57:42 +0000 (01:57 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 27 May 2006 01:57:42 +0000 (01:57 +0000)
commit7749886d42d1284d86e40ea453edbf3c78e000e2
tree8a4d8540f94ed25e328a9a1e5439813037ae5133
parentbf7652876b1a585b2e56512cf16b9bfddaf092a1
Greatly reduce the MP locking that occurs in closef(), and remove
unnecessary VOP_ADVLOCK calls in both closef() and fdrop() by adding
a new vnode flag, VMAYHAVELOCKS, that we can check before doing the
VOP_ADVLOCK mess.
sys/kern/kern_descrip.c
sys/kern/kern_lockf.c
sys/sys/vnode.h