plan 9 kernel history: overview | file list | diff list

2002/0420/port/proc.c (diff list | history)

2002/0416/sys/src/9/port/proc.c:87,962002/0420/sys/src/9/port/proc.c:87,98 (short | long | prev | next)
Panic if sched during ilock. Bug fix? delay the sched during lock for any run state other than Moribund, not just Running.
rsc Mon Mar 20 20:49:33 2006
1990/0227    
void 
sched(void) 
{ 
2002/0420    
	if(m->ilockdepth) 
		panic("ilockdepth %d", m->ilockdepth); 
 
2002/0403    
	if(up){ 
		if(up->state == Running && up->nlocks){ 
2002/0416    
			up->delaysched = 1; 
2002/0403    
			delayedscheds++; 
2002/0420    
		if(up->nlocks && up->state != Moribund){ 
 			delayedscheds++; 
2002/0403    
			return; 
		} 
 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)