[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150314022002.GA10086@gondor.apana.org.au>
Date: Sat, 14 Mar 2015 13:20:02 +1100
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Thomas Graf <tgraf@...g.ch>
Cc: davem@...emloft.net, netdev@...r.kernel.org, daniel@...earbox.net
Subject: Re: [PATCH 1/3 net-next] rhashtable: Avoid calculating hash again to
unlock
On Fri, Mar 13, 2015 at 03:45:19PM +0100, Thomas Graf wrote:
> Caching the lock pointer avoids having to hash on the object
> again to unlock the bucket locks.
>
> Signed-off-by: Thomas Graf <tgraf@...g.ch>
Looks good to me. I originally avoided doing this because I
thought I had to hold every bucket lock from the first table to
the last with multiple rehashing. However, my new scheme only
requires the "first" table and the last table to be locked so
caching it is fine.
Cheers,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists