There are a couple of options for implementations to use that don't
require space for a spinlock: a hash table of spinlocks can be used
to protect the data (parisc uses this technique). Andrea's lockless
reader locks could be useful in this case. Most x86es can use cmpxchg8,
and the 64 bit machines are already set. I suspect it would be a useful
addition to the kernel APIs.
-ben
-- "You will be reincarnated as a toad; and you will be much happier." - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/