]> git.baikalelectronics.ru Git - kernel.git/commit
rhashtable: Avoid calculating hash again to unlock
authorThomas Graf <tgraf@suug.ch>
Mon, 16 Mar 2015 09:42:26 +0000 (10:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2015 21:14:34 +0000 (17:14 -0400)
commitd8e3831b303a810c67ec700fc0aa1797170b2cd5
tree43dc9257e68f0bb7c5a3ce132932ecf632654d22
parentc7a76f6920e0ced18ce8562b4b1c7c3438eced8d
rhashtable: Avoid calculating hash again to unlock

Caching the lock pointer avoids having to hash on the object
again to unlock the bucket locks.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/rhashtable.c