Re: lock_kernel() in kernel thread

2000-10-25 Thread Eric Lowe
Hello, lock_kernel() is a reentrant spinlock that is meant to protect all code that's not SMP safe. In 2.2, this is a good part of the kernel; in 2.4, it's not very much at all. (It's reentrant because it can be held across calls to schedule(), a normal spinlock can't and would deadlock the sys

lock_kernel() in kernel thread

2000-10-13 Thread Armin Schindler
Hi, I was wondering why it is necessary for the usb_hub_thread() in drivers/usb/hub.c to have the big kernel lock with lock_kernel() ? What is it with lock_kernel() anyway ? extern __inline__ void lock_kernel(void) { #if 1 if (!++current->lock_depth) spin_lock(&kernel_fl