Subject: CVS commit: syssrc/sys/dev/raidframe
To: None <source-changes@netbsd.org>
From: Greg Oster <oster@netbsd.org>
List: source-changes
Date: 08/08/2002 05:53:02
Module Name:	syssrc
Committed By:	oster
Date:		Thu Aug  8 02:53:02 UTC 2002

Modified Files:
	syssrc/sys/dev/raidframe: rf_freelist.h

Log Message:
RF_LOCK_MUTEX()/RF_UNLOCK_MUTEX() often cover more code than they
needs to.  In particular, they often surround calls to malloc().
Re-work the locking on most macros to avoid this problem.

XXX: On MP systems, simultaneous calls to the GET macros when a
freelist is empty may cause that freelist to grow more quickly than
before.  Given that the "increment" value of these lists are fairly
small, this shouldn't be too much of an issue.


To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 syssrc/sys/dev/raidframe/rf_freelist.h

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