PERFORCE change 135545 for review

John Birrell jb at FreeBSD.org
Sat Feb 16 18:32:56 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=135545

Change 135545 by jb at jb_freebsd1 on 2008/02/17 02:32:07

	Don't assert that the linker lock is locked when getting CTF data.
	
	To solve the locking problems that DTrace bumps into, we'll
	have to add a "busy" counter to the linker_file structure so
	that a module can (lock the linker lock and) say "you can't
	unload me now because I'm doing stuff, try again later" (then
	unlock the linker lock) and do it's stuff without otherwise
	having to hold a lock to stop itself from getting unloaded.

Affected files ...

.. //depot/projects/dtrace/src/sys/kern/kern_linker.c#29 edit

Differences ...

==== //depot/projects/dtrace/src/sys/kern/kern_linker.c#29 (text+ko) ====

@@ -650,8 +650,6 @@
 int
 linker_ctf_get(linker_file_t file, const uint8_t **data, int *len)
 {
-	KLD_LOCK_ASSERT();
-
 	return (LINKER_CTF_GET(file, data, len));
 }
 


More information about the p4-projects mailing list