Tom Herbert <t...@herbertland.com> wrote:
> To allocate the array of bucket locks for the hash table we now
> call library function alloc_bucket_spinlocks. This function is
> based on the old alloc_bucket_locks in rhashtable and should
> produce the same effect.
> Signed-off-by: Tom Herbert <t...@herbertland.com>
This conflicts with the work I'm doing to fix the resize ENOMEM
issue. I'll be making the hashtable as well as the spinlock table
nested, in which case you must not directly dereference it as an
If you're just trying to share the spinlocks for another purpose,
what we can do is provide a helper function to return the right
lock for a given key/object.
Email: Herbert Xu <herb...@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt