Tom Herbert [off-list ref] 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 <redacted>
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
array.
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.
Cheers,
--
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt