diff options
author | Julian Elischer <julian@FreeBSD.org> | 2003-02-05 19:36:58 +0000 |
---|---|---|
committer | Julian Elischer <julian@FreeBSD.org> | 2003-02-05 19:36:58 +0000 |
commit | 822ded67fea3296ac7ff5f7e80308123191bda53 (patch) | |
tree | 4c65b6e79b50a68f03157979bba1b127a06cbeca /sys/sys/buf.h | |
parent | 6f15bc16ede60438bcab838326887fab128e2e8f (diff) | |
download | src-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.h | 2 |
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; } |