Remove the thread pointer argument to lockmgr(). All lockmgr() ops use the
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 5 May 2006 20:15:02 +0000 (20:15 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 5 May 2006 20:15:02 +0000 (20:15 +0000)
commitdf4f70a66a4b38799e361f3fe6513b6ef9014625
tree198759ea7cf0e53a0a9364d680060897988eb5e1
parent62cfda2772299e3a74e7ced1f91b0f8fe45f3e9a
Remove the thread pointer argument to lockmgr().  All lockmgr() ops use the
current thread.

Move the lockmgr code in BUF_KERNPROC to lockmgr_kernproc().  This code
allows the lock owner to be set to a special value so any thread can unlock
the lock and is required for B_ASYNC I/O so biodone() can release the lock.
26 files changed:
sys/bus/usb/ehci.c
sys/dev/agp/agp.c
sys/dev/drm/drm_os_freebsd.h
sys/dev/pccard/pccbb/pccbb.c
sys/kern/imgact_resident.c
sys/kern/kern_linker.c
sys/kern/kern_lock.c
sys/kern/kern_sysctl.c
sys/kern/vfs_default.c
sys/kern/vfs_lock.c
sys/kern/vfs_mount.c
sys/kern/vfs_syscalls.c
sys/netproto/ncp/ncp_conn.c
sys/netproto/smb/smb_conn.c
sys/sys/buf2.h
sys/sys/lock.h
sys/vfs/coda/coda_vnops.c
sys/vfs/hpfs/hpfs.h
sys/vfs/nfs/nfsnode.h
sys/vfs/ntfs/ntfs.h
sys/vfs/nwfs/nwfs_node.c
sys/vfs/smbfs/smbfs_node.c
sys/vfs/specfs/spec_vnops.c
sys/vm/vm_fault.c
sys/vm/vm_map.h
sys/vm/vm_pageout.c