diff options
author | jeff <jeff@FreeBSD.org> | 2005-08-03 04:48:22 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2005-08-03 04:48:22 +0000 |
commit | 08fb635b5502e48aa8292e7f376c46f0ba1db8cc (patch) | |
tree | 9f832940cb85883a5821c06fb2bfd2f54759028d /sys/sys/vnode.h | |
parent | 0b6d38e89f73861edc118b9f13efec01813c8e6a (diff) | |
download | FreeBSD-src-08fb635b5502e48aa8292e7f376c46f0ba1db8cc.zip FreeBSD-src-08fb635b5502e48aa8292e7f376c46f0ba1db8cc.tar.gz |
- Replace the series of DEBUG_LOCKS hacks which tried to save the vn_lock
caller by saving the stack of the last locker/unlocker in lockmgr. We
also put the stack in KTR at the moment.
Contributed by: Antoine Brodin <antoine.brodin@laposte.net>
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r-- | sys/sys/vnode.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index 05b5da7..f27be24 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -159,10 +159,6 @@ struct vnode { struct lock v_lock; /* u (if fs don't have one) */ struct mtx v_interlock; /* lock for "i" things */ struct lock *v_vnlock; /* u pointer to vnode lock */ -#ifdef DEBUG_LOCKS - const char *filename; /* Source file doing locking */ - int line; /* Line number doing locking */ -#endif int v_holdcnt; /* i prevents recycling. */ int v_usecount; /* i ref count of users */ u_long v_iflag; /* i vnode flags (see below) */ @@ -613,11 +609,6 @@ int vn_close(struct vnode *vp, void vn_finished_write(struct mount *mp); int vn_isdisk(struct vnode *vp, int *errp); int vn_lock(struct vnode *vp, int flags, struct thread *td); -#ifdef DEBUG_LOCKS -int debug_vn_lock(struct vnode *vp, int flags, struct thread *p, - const char *filename, int line); -#define vn_lock(vp,flags,p) debug_vn_lock(vp,flags,p,__FILE__,__LINE__) -#endif int vn_open(struct nameidata *ndp, int *flagp, int cmode, int fdidx); int vn_open_cred(struct nameidata *ndp, int *flagp, int cmode, struct ucred *cred, int fdidx); |