Subject: CVS commit: src/sys/kern
To: None <source-changes@NetBSD.org>
From: Jason R Thorpe <thorpej@netbsd.org>
List: source-changes
Date: 06/18/2005 01:34:03
Module Name:	src
Committed By:	thorpej
Date:		Sat Jun 18 01:34:03 UTC 2005

Modified Files:
	src/sys/kern: subr_pool.c

Log Message:
Fix some locking issues:
- Make the locking rules for pr_rmpage() sane, and don't modify fields
  protected by the pool lock without actually holding it.
- Always defer freeing the pool page to the back-end allocator, to avoid
  invoking the pool_allocator with the pool locked (which would violate
  the pool_allocator -> pool locking order).
- Fix pool_reclaim() to not violate the pool_cache -> pool locking order
  by using a trylock.

Reviewed by Chuq Silvers.


To generate a diff of this commit:
cvs rdiff -r1.100 -r1.101 src/sys/kern/subr_pool.c

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