Re: down_trylock doesn't preserve irqstate

From: David S. Miller (davem@redhat.com)
Date: Fri Feb 25 2000 - 19:43:05 EST


   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/



This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:14 EST