summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_vnops.c
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2006-11-13 05:51:22 +0000
committerkmacy <kmacy@FreeBSD.org>2006-11-13 05:51:22 +0000
commit0c00ea16dbadcde1937dfc2bef577820b762e95a (patch)
treec2c7577af1d9350da736e5ba02f23f6df8c9f273 /sys/kern/vfs_vnops.c
parentc07fe38e024b8eb9ed43c77f898e85cf8c488928 (diff)
downloadFreeBSD-src-0c00ea16dbadcde1937dfc2bef577820b762e95a.zip
FreeBSD-src-0c00ea16dbadcde1937dfc2bef577820b762e95a.tar.gz
change vop_lock handling to allowing tracking of callers' file and line for
acquisition of lockmgr locks Approved by: scottl (standing in for mentor rwatson)
Diffstat (limited to 'sys/kern/vfs_vnops.c')
-rw-r--r--sys/kern/vfs_vnops.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index 3511044..c56d7fc 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -799,10 +799,7 @@ vn_poll(fp, events, active_cred, td)
* acquire requested lock.
*/
int
-vn_lock(vp, flags, td)
- struct vnode *vp;
- int flags;
- struct thread *td;
+_vn_lock(struct vnode *vp, int flags, struct thread *td, char *file, int line)
{
int error;
@@ -825,7 +822,7 @@ vn_lock(vp, flags, td)
* lockmgr drops interlock before it will return for
* any reason. So force the code above to relock it.
*/
- error = VOP_LOCK(vp, flags | LK_INTERLOCK, td);
+ error = _VOP_LOCK(vp, flags | LK_INTERLOCK, td, file, line);
flags &= ~LK_INTERLOCK;
KASSERT((flags & LK_RETRY) == 0 || error == 0,
("LK_RETRY set with incompatible flags %d\n", flags));
OpenPOWER on IntegriCloud