Re: down_trylock doesn't preserve irqstate

From: David S. Miller (davem@redhat.com)
Date: Fri Feb 25 2000 - 18:10:42 EST


   Date: Fri, 25 Feb 2000 15:11:38 -0800
   From: Rajagopal Ananthanarayanan <ananth@sgi.com>

   Right, if it were a sleep point, I agree.
   But my understanding is that down_trylock()
   is not one of those: isn't it used for conditionally
   acquiring the semaphore?

True, sorry, thinko.

But still, my other point holds, you should not IRQ disable
when performing semaphore operations.

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