> Under SMP (8 CPUs) system with 2.2.5-15smp kernel, when adding down()/up()
> pair for critical section locking purpose in my fibre channel driver (to
> system, it is scsi), system panic. Acutually even under UP system,
> involving this pair of function cause trouble. Without those semaphore
> lock, it works fine for quite a while.
Sounds you're trying to use it in bottom half/interrupt context. This
is forbidden. You need to use a spinlock for this case.
-Andi
-- This is like TV. I don't like TV.- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/