List Info

Thread: sysmon_taskq converted to mutex/cv - round 2




sysmon_taskq converted to mutex/cv - round 2
country flaguser name
Spain
2007-07-20 17: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://w
ww.netbsd.org/~xtraeme/smtaskq2.diff

Cheers.

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

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )