spinlocks dont work

From: RANDAZZO
Date: Fri Feb 13 2004 - 11:29:37 EST


On my uniprocessor system, I have two LKM's

driver1 takes hold of the spinlock....but does not release it...
driver2 attempts to take hold, and is allowed!!!!

how come spin locks don't work?????

how can I restrict access (to hardware) to only one driver at a time???

should I use semaphores, etc...



"This message may contain company proprietary information. If you are not
the intended recipient, any disclosure, copying, distribution or reliance on
the contents of this message is prohibited. If you received this message in
error, please delete and notify me."

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