[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150316204836.GA6534@gondor.apana.org.au>
Date: Tue, 17 Mar 2015 07:48:36 +1100
From: Herbert Xu <herbert@...dor.apana.org.au>
To: David Miller <davem@...emloft.net>
Cc: tgraf@...g.ch, netdev@...r.kernel.org
Subject: Re: [PATCH 1/2 net-next] rhashtable: Avoid calculating hash again to
unlock
On Mon, Mar 16, 2015 at 04:22:02PM -0400, David Miller wrote:
> From: Thomas Graf <tgraf@...g.ch>
> Date: Mon, 16 Mar 2015 10:42:26 +0100
>
> > 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>
>
> I'd like to hold off on this.
>
> My understanding is that Herbert plans to expand the table size
> synchonously during insert in emergency situations, and in that regime
> some of these optimization won't be valid.
Actually this patch does not conflict with my multiple rehashing
work (the final scheme I used only requires two locks) so please
feel free to merge it and I will rebase my stuff.
Thanks,
--
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