Subject: sysmon_taskq converted to mutex/cv - round 2
To: None <tech-kern@netbsd.org>
From: Juan RP <juan@xtrarom.org>
List: tech-kern
Date: 07/21/2007 00:49:28
Hi,

The following patch changes sysmon_taskq to use mutexes and condvars.

I had to use two spin mutexes to handle the queue and finalization, as
the former may be called from interrupt context and I can't acquire an
adaptive mutex while I'm in the spinning one.

It's working great with LOCKDEBUG/DIAGNOSTIC/DEBUG... please review.

http://www.netbsd.org/~xtraeme/smtaskq2.diff

Cheers.

-- 
Juan Romero Pardines 	- The NetBSD Project
http://plog.xtrarom.org 	- NetBSD/pkgsrc news in Spanish