Subject: CVS commit: [vmlocking] src/sys/kern
To: None <source-changes@NetBSD.org>
From: Andrew Doran <ad@netbsd.org>
List: source-changes
Date: 11/01/2007 21:10:15
Module Name: src
Committed By: ad
Date: Thu Nov 1 21:10:15 UTC 2007
Modified Files:
src/sys/kern [vmlocking]: subr_pool.c
Log Message:
pool_reclaim: acquire kernel_lock if the pool is at IPL_SOFTCLOCK,
SOFTNET or SOFTSERIAL, as mutexes at these levels must still be
spinlocks. It's not yet safe for e.g. ip_intr() to block as this
upsets code calling up from the socket layer. It can find pcbs
sitting half baked.
pool_cache_xcall: go to splvm to prevent kernel_lock from being
taken, for the reason listed above.
Pointed out by yamt@.
To generate a diff of this commit:
cvs rdiff -r1.128.2.12 -r1.128.2.13 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.