[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180304141649.GA24947@gondor.apana.org.au>
Date: Sun, 4 Mar 2018 22:16:49 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Paul Blakey <paulb@...lanox.com>
Cc: Thomas Graf <tgraf@...g.ch>, David Miller <davem@...emloft.net>,
netdev@...r.kernel.org, Yevgeny Kliteynik <kliteyn@...lanox.com>,
Roi Dayan <roid@...lanox.com>,
Shahar Klein <shahark@...lanox.com>,
Mark Bloch <markb@...lanox.com>,
Jiri Pirko <jiri@...lanox.com>,
Or Gerlitz <ogerlitz@...lanox.com>,
Matan Barak <matanb@...lanox.com>
Subject: Re: [PATCH net 1/2] rhashtable: Fix rhltable duplicates insertion
On Sun, Mar 04, 2018 at 02:34:26PM +0200, Paul Blakey wrote:
> When inserting duplicate objects (those with the same key),
> current rhashtable implementation messes up the chain pointers by
> updating the bucket pointer instead of prev next pointer to the
> newly inserted node. This causes missing elements on removal and
> travesal.
>
> Fix that by properly updating pprev pointer to point to
> the correct rhash_head next pointer.
>
> Fixes: ca26893f05e8 ('rhashtable: Add rhlist interface')
> Signed-off-by: Paul Blakey <paulb@...lanox.com>
Ah I see, thanks for catching this!
Acked-by: Herbert Xu <herbert@...dor.apana.org.au>
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
Powered by blists - more mailing lists