Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Feb 2008 02:32:55 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 135545 for review
Message-ID:  <200802170232.m1H2Wteu097488@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=135545

Change 135545 by jb@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));
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802170232.m1H2Wteu097488>