[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150323092921.GB12506@gondor.apana.org.au>
Date: Mon, 23 Mar 2015 20:29:21 +1100
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Thomas Graf <tgraf@...g.ch>
Cc: "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <eric.dumazet@...il.com>,
Patrick McHardy <kaber@...sh.net>,
Josh Triplett <josh@...htriplett.org>,
"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
netdev@...r.kernel.org
Subject: Re: [v2 PATCH 7/10] rhashtable: Disable automatic shrinking
On Mon, Mar 23, 2015 at 08:37:12AM +0000, Thomas Graf wrote:
>
> I think rhashtable_shrink() should fetch ht->tbl in an RCU section to
> cheaply get the current table size and only do the allocation and take
> the lock if the table size warrants for shrinking.
Well you should never invoke rhashtable_shrink unless you actually
wanted to shrink. So this is something that you should have checked
before rhashtable_shrink is called.
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