Messages in this thread | | | Date | Fri, 25 Feb 2000 16:43:05 -0800 | From | "David S. Miller" <> | Subject | Re: down_trylock doesn't preserve irqstate |
| |
Date: Sat, 26 Feb 2000 01:33:35 +0100 (CET) From: Andrea Arcangeli <andrea@suse.de>
The only point of the trylock is that it doesn't sleep and that it can be used within irq handlers and so on...
I retract my statements, thanks for bringing me back to reality.
Yes, down_trlock should thus use spin_lock_irq{save,restore}.
Later, David S. Miller davem@redhat.com
- 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/
| |