This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/2922] BUG: sleeping function called from invalid context at kernel/mutex.c:86


------- Additional Comments From armbru at pond dot sub dot org  2006-07-14 08:16 -------
Subject: Re:  BUG: sleeping function called from invalid context at kernel/mutex.c:86

"fche at redhat dot com" <sourceware-bugzilla@sourceware.org> writes:

> ------- Additional Comments From fche at redhat dot com  2006-07-13 20:15 -------
> The question is why this __stp_init_time appears to be in irqs_disabled context.
> Does the "on_each_cpu" IPI widget imply that?

Yes.  Quoting kernel/softirq.c:

/*
 * Call a function on all processors
 */
int on_each_cpu(void (*func) (void *info), void *info, int retry, int wait)
{
	int ret = 0;

	preempt_disable();
	ret = smp_call_function(func, info, retry, wait);
	local_irq_disable();
	func(info);
	local_irq_enable();
	preempt_enable();
	return ret;
}


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2922

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]