[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7DA2F716-1E87-4AC8-A18F-CE5BFB6E6F81@joshtriplett.org>
Date: Sat, 15 Nov 2014 18:37:26 -0800
From: Josh Triplett <josh@...htriplett.org>
To: Herbert Xu <herbert@...dor.apana.org.au>
CC: tgraf@...g.ch, netdev@...r.kernel.org, eric.dumazet@...il.com,
paulmck@...ux.vnet.ibm.com
Subject: Re: [PATCH 4/4] rhashtable: Add parent argument to mutex_is_held
On November 15, 2014 6:22:27 PM PST, Herbert Xu <herbert@...dor.apana.org.au> wrote:
>Josh Triplett <josh@...htriplett.org> wrote:
>>
>> - Set up the new empty table with the new set of hash parameters.
>> - synchronize_rcu(). Readers will now search both old and new
>tables.
>> - Peel nodes off the ends of the old hash table and add them to the
>new
>
>We currently use a singly linked list in rhashtable. Peeling nodes
>off the end would mean upgrading to a doubly linked list, which is
>no different than keeping two lists in terms of cache footprint, no?
No, since each pass just handles one set of nodes from each bucket anyway, you can just do a bit more work in the rehasher instead.
--
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