[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: spin locks



Hi,

raja wrote:

> 	spin_lock(&my_lock);
> 	int i=0;
> 	for(i=1;i<1000000;i++)
> 	{
> 		schedule();

Don't call schedule() while holding your spinlock.

Sincerly,

Thomas
-- 
Thomas Petazzoni
thomas.petazzoni@xxxxxxxx

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/