why both kernel lock as well as semaphore

From: Sourav Sen (sourav@csa.iisc.ernet.in)
Date: Sat Dec 23 2000 - 07:45:41 EST


In many parts of the kernel, I have seen both semaphore is taken
(eg. down(&current->mm->mmap_sem)) as well as kernel lock (lock_kernel())
is also taken, why both are required? Whats the purpose of each?

~sourav

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Dec 23 2000 - 21:00:34 EST