Ben- A few months ago, I sent you a couple of trylock routines for read/write semaphores. Here's an updated version for 2.4.6. We use them for deadlock avoidance in the clustering work we're doing. We thought that others might be able to use them, as well. A caveat for these trylock routines is that they use the cmpxchg instruction, which limits their usefulness on x86 to 486 and above. I noticed that the RISC architectures, however, have no problem rigging up a cmpxchg() equivalent (at least Alpha and PPC don't). Please let me know if you have any objections to folding them in with the rest of the read/write semaphore implementation. Thanks. -- Brian Watson | "The common people of England... so Linux Kernel Developer | jealous of their liberty, but like the SSI Clustering Laboratory | common people of most other countries Compaq Computer Corp | never rightly considering wherein it Los Angeles, CA | consists..." | -Adam Smith, Wealth of Nations, 1776 mailto:Brian.J.Watson@compaq.com http://opensource.compaq.com/