[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150316.171500.2219680403539914280.davem@davemloft.net>
Date: Mon, 16 Mar 2015 17:15:00 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: herbert@...dor.apana.org.au
Cc: tgraf@...g.ch, netdev@...r.kernel.org
Subject: Re: [PATCH 1/2 net-next] rhashtable: Avoid calculating hash again
to unlock
From: Herbert Xu <herbert@...dor.apana.org.au>
Date: Tue, 17 Mar 2015 07:48:36 +1100
> 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.
Ok, done, thanks.
--
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