Subject: CVS commit: [vmlocking] src/sys
To: None <source-changes@NetBSD.org>
From: Andrew Doran <ad@netbsd.org>
List: source-changes
Date: 10/03/2007 19:11:16
Module Name:	src
Committed By:	ad
Date:		Wed Oct  3 19:11:16 UTC 2007

Modified Files:
	src/sys/kern [vmlocking]: sys_generic.c vfs_subr.c vfs_syscalls.c
	src/sys/sys [vmlocking]: file.h mount.h

Log Message:
- Don't do proc_vmspace_getref() in dofileread() and friends. They only
  ever access the caller's vmspace so it's not going to go away. Instead
  just use curproc->p_vmspace. Fixes high lock contention during file I/O
  by multithreaded processes. Don't pass in lwp_t *l, it's confusing.

- Drain cleaned vnodes from mountpoints just before checking to see
  if there are danglers. Cleaned vnodes now stick around on mountpoint
  lists until reused, as it's too expensive to pull them off earlier.


To generate a diff of this commit:
cvs rdiff -r1.100.2.12 -r1.100.2.13 src/sys/kern/sys_generic.c
cvs rdiff -r1.283.2.18 -r1.283.2.19 src/sys/kern/vfs_subr.c
cvs rdiff -r1.306.2.14 -r1.306.2.15 src/sys/kern/vfs_syscalls.c
cvs rdiff -r1.56.18.2 -r1.56.18.3 src/sys/sys/file.h
cvs rdiff -r1.155.2.8 -r1.155.2.9 src/sys/sys/mount.h

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