Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [nathanw_sa] syssrc/sys



Module Name:    syssrc
Committed By:   thorpej
Date:           Tue Nov 27 03:17:19 UTC 2001

Modified Files:
        syssrc/sys/kern [nathanw_sa]: kern_lock.c
        syssrc/sys/nfs [nathanw_sa]: nfs_syscalls.c
        syssrc/sys/sys [nathanw_sa]: lock.h lwp.h proc.h

Log Message:
Make lockmgr() lwp-aware:
- Locks are counted against LWPs, not procs.
- When we record the lockholder in the lock structure, we need to
  also record the lwpid.
- When we are checking who holds the lock, also consider lwpid.

Fixes a "locking against myself" panic reported by Allen Briggs that
could be easily triggered by redirecting the output of an LWP-using
program to a file.


To generate a diff of this commit:
cvs rdiff -r1.51.2.6 -r1.51.2.7 syssrc/sys/kern/kern_lock.c
cvs rdiff -r1.48.2.2 -r1.48.2.3 syssrc/sys/nfs/nfs_syscalls.c
cvs rdiff -r1.41.2.1 -r1.41.2.2 syssrc/sys/sys/lock.h
cvs rdiff -r1.1.2.8 -r1.1.2.9 syssrc/sys/sys/lwp.h
cvs rdiff -r1.124.2.7 -r1.124.2.8 syssrc/sys/sys/proc.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index