aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/buf.h
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>2003-02-05 19:36:58 +0000
committerJulian Elischer <julian@FreeBSD.org>2003-02-05 19:36:58 +0000
commit822ded67fea3296ac7ff5f7e80308123191bda53 (patch)
tree4c65b6e79b50a68f03157979bba1b127a06cbeca /sys/sys/buf.h
parent6f15bc16ede60438bcab838326887fab128e2e8f (diff)
downloadsrc-822ded67fea3296ac7ff5f7e80308123191bda53.tar.gz
src-822ded67fea3296ac7ff5f7e80308123191bda53.zip
The lockmanager has to keep track of locks per thread, not per process.
Submitted by: david Xu (davidxu@) Reviewed by: jhb@
Notes
Notes: svn path=/head/; revision=110414
Diffstat (limited to 'sys/sys/buf.h')
-rw-r--r--sys/sys/buf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/buf.h b/sys/sys/buf.h
index f6bfc21ce2ca..9a8ab3a5c2b2 100644
--- a/sys/sys/buf.h
+++ b/sys/sys/buf.h
@@ -353,7 +353,7 @@ BUF_KERNPROC(struct buf *bp)
struct thread *td = curthread;
if ((td != PCPU_GET(idlethread))
- && bp->b_lock.lk_lockholder == td->td_proc->p_pid)
+ && bp->b_lock.lk_lockholder == td)
td->td_locks--;
bp->b_lock.lk_lockholder = LK_KERNPROC;
}