]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit617011e7d5559046e4fc8f87793c8a5d9c3431b0
tree43dc9257e68f0bb7c5a3ce132932ecf632654d22
parent9f1ab18672bee992b6169bbfa2b5ae86b42e88a8
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