<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/lib/test_rhashtable.c, branch v4.15</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v4.15</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.15'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2017-09-22T03:40:55Z</updated>
<entry>
<title>test_rhashtable: remove initdata annotation</title>
<updated>2017-09-22T03:40:55Z</updated>
<author>
<name>Florian Westphal</name>
<email>fw@strlen.de</email>
</author>
<published>2017-09-21T15:36:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=411d788a23f7e20b8fc51b548c7204fdecc9d22e'/>
<id>urn:sha1:411d788a23f7e20b8fc51b548c7204fdecc9d22e</id>
<content type='text'>
kbuild test robot reported a section mismatch warning w. gcc 4.x:
WARNING: lib/test_rhashtable.o(.text+0x139e):
Section mismatch in reference from the function rhltable_insert.clone.3() to the variable .init.data:rhlt

so remove this annotation.

Fixes: cdd4de372ea06 ("test_rhashtable: add test case for rhl_table interface")
Reported-by: kbuild test robot &lt;lkp@intel.com&gt;
Signed-off-by: Florian Westphal &lt;fw@strlen.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>test_rhashtable: add test case for rhl_table interface</title>
<updated>2017-09-19T23:15:47Z</updated>
<author>
<name>Florian Westphal</name>
<email>fw@strlen.de</email>
</author>
<published>2017-09-19T23:12:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=cdd4de372ea06a18e104100b9f2c442527d26db1'/>
<id>urn:sha1:cdd4de372ea06a18e104100b9f2c442527d26db1</id>
<content type='text'>
also test rhltable.  rhltable remove operations are slow as
deletions require a list walk, thus test with 1/16th of the given
entry count number to get a run duration similar to rhashtable one.

Signed-off-by: Florian Westphal &lt;fw@strlen.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>test_rhashtable: add a check for max_size</title>
<updated>2017-09-19T23:15:47Z</updated>
<author>
<name>Florian Westphal</name>
<email>fw@strlen.de</email>
</author>
<published>2017-09-19T23:12:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a6359bd8dd1c3a15c09e7dbb533bf89d13b42acd'/>
<id>urn:sha1:a6359bd8dd1c3a15c09e7dbb533bf89d13b42acd</id>
<content type='text'>
add a test that tries to insert more than max_size elements.

Signed-off-by: Florian Westphal &lt;fw@strlen.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>test_rhashtable: don't use global entries variable</title>
<updated>2017-09-19T23:15:47Z</updated>
<author>
<name>Florian Westphal</name>
<email>fw@strlen.de</email>
</author>
<published>2017-09-19T23:12:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f651616e799ff01d1e21abc053ee1e23ac1a2344'/>
<id>urn:sha1:f651616e799ff01d1e21abc053ee1e23ac1a2344</id>
<content type='text'>
pass the entries to test as an argument instead.
Followup patch will add an rhlist test case; rhlist delete opererations
are slow so we need to use a smaller number to test it.

Signed-off-by: Florian Westphal &lt;fw@strlen.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>test_rhashtable: don't allocate huge static array</title>
<updated>2017-09-19T23:15:47Z</updated>
<author>
<name>Florian Westphal</name>
<email>fw@strlen.de</email>
</author>
<published>2017-09-19T23:12:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7e936bd73483eb1873b9ab6f375c9a1d781bc5cb'/>
<id>urn:sha1:7e936bd73483eb1873b9ab6f375c9a1d781bc5cb</id>
<content type='text'>
Signed-off-by: Florian Westphal &lt;fw@strlen.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>lib: test_rhashtable: Fix KASAN warning</title>
<updated>2017-07-25T19:35:23Z</updated>
<author>
<name>Phil Sutter</name>
<email>phil@nwl.cc</email>
</author>
<published>2017-07-25T11:36:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=783692558a60cd69d8d86900b33846263598ca6c'/>
<id>urn:sha1:783692558a60cd69d8d86900b33846263598ca6c</id>
<content type='text'>
I forgot one spot when introducing struct test_obj_val.

Fixes: e859afe1ee0c5 ("lib: test_rhashtable: fix for large entry counts")
Reported by: kernel test robot &lt;fengguang.wu@intel.com&gt;
Signed-off-by: Phil Sutter &lt;phil@nwl.cc&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>lib: test_rhashtable: fix for large entry counts</title>
<updated>2017-07-24T21:13:58Z</updated>
<author>
<name>Phil Sutter</name>
<email>phil@nwl.cc</email>
</author>
<published>2017-07-21T14:51:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e859afe1ee0c5ae981c55387ccd45eba258a7842'/>
<id>urn:sha1:e859afe1ee0c5ae981c55387ccd45eba258a7842</id>
<content type='text'>
During concurrent access testing, threadfunc() concatenated thread ID
and object index to create a unique key like so:

| tdata-&gt;objs[i].value = (tdata-&gt;id &lt;&lt; 16) | i;

This breaks if a user passes an entries parameter of 64k or higher,
since 'i' might use more than 16 bits then. Effectively, this will lead
to duplicate keys in the table.

Fix the problem by introducing a struct holding object and thread ID and
using that as key instead of a single integer type field.

Fixes: f4a3e90ba5739 ("rhashtable-test: extend to test concurrency")
Reported by: Manuel Messner &lt;mm@skelett.io&gt;
Signed-off-by: Phil Sutter &lt;phil@nwl.cc&gt;
Acked-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>rhashtable-test: Fix max_size parameter description</title>
<updated>2016-08-08T19:52:42Z</updated>
<author>
<name>Phil Sutter</name>
<email>phil@nwl.cc</email>
</author>
<published>2016-08-04T10:37:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=3b3bf80b994f0c6c35a25ef8965ab956b4bcced5'/>
<id>urn:sha1:3b3bf80b994f0c6c35a25ef8965ab956b4bcced5</id>
<content type='text'>
Looks like a simple copy'n'paste error.

Fixes: 1aa661f5c3df1 ("rhashtable-test: Measure time to insert, remove &amp; traverse entries")
Signed-off-by: Phil Sutter &lt;phil@nwl.cc&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>rhashtable: accept GFP flags in rhashtable_walk_init</title>
<updated>2016-04-05T08:56:32Z</updated>
<author>
<name>Bob Copeland</name>
<email>me@bobcopeland.com</email>
</author>
<published>2016-03-02T15:09:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=8f6fd83c6c5ec66a4a70c728535ddcdfef4f3697'/>
<id>urn:sha1:8f6fd83c6c5ec66a4a70c728535ddcdfef4f3697</id>
<content type='text'>
In certain cases, the 802.11 mesh pathtable code wants to
iterate over all of the entries in the forwarding table from
the receive path, which is inside an RCU read-side critical
section.  Enable walks inside atomic sections by allowing
GFP_ATOMIC allocations for the walker state.

Change all existing callsites to pass in GFP_KERNEL.

Acked-by: Thomas Graf &lt;tgraf@suug.ch&gt;
Signed-off-by: Bob Copeland &lt;me@bobcopeland.com&gt;
[also adjust gfs2/glock.c and rhashtable tests]
Signed-off-by: Johannes Berg &lt;johannes.berg@intel.com&gt;
</content>
</entry>
<entry>
<title>rhashtable-test: allow to retry even if -ENOMEM was returned</title>
<updated>2015-11-23T17:36:08Z</updated>
<author>
<name>Phil Sutter</name>
<email>phil@nwl.cc</email>
</author>
<published>2015-11-20T17:17:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d662e037fc88b187494a95b5bc19b3c0e9b9ea36'/>
<id>urn:sha1:d662e037fc88b187494a95b5bc19b3c0e9b9ea36</id>
<content type='text'>
This is rather a hack to expose the current issue with rhashtable to
under high pressure sometimes return -ENOMEM even though system memory
is not exhausted and a consecutive insert may succeed.

Signed-off-by: Phil Sutter &lt;phil@nwl.cc&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
